mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 15:49:46 +02:00
fix: Fix saving milliseconds for timestamps
This commit is contained in:
parent
6c4db967c2
commit
d386c82973
5 changed files with 8 additions and 12 deletions
|
@ -80,13 +80,13 @@ module.exports.models = {
|
|||
},
|
||||
|
||||
beforeCreate(valuesToSet, proceed) {
|
||||
valuesToSet.createdAt = new Date().toUTCString(); // eslint-disable-line no-param-reassign
|
||||
valuesToSet.createdAt = new Date().toISOString(); // eslint-disable-line no-param-reassign
|
||||
|
||||
proceed();
|
||||
},
|
||||
|
||||
beforeUpdate(valuesToSet, proceed) {
|
||||
valuesToSet.updatedAt = new Date().toUTCString(); // eslint-disable-line no-param-reassign
|
||||
valuesToSet.updatedAt = new Date().toISOString(); // eslint-disable-line no-param-reassign
|
||||
|
||||
proceed();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue