mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 01:11:23 +03:00
fix: Fix saving milliseconds for timestamps
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = {
|
||||
id: inputs.record.id,
|
||||
deletedAt: null,
|
||||
}).set({
|
||||
deletedAt: new Date().toUTCString(),
|
||||
deletedAt: new Date().toISOString(),
|
||||
});
|
||||
|
||||
if (user) {
|
||||
|
||||
@@ -64,7 +64,7 @@ module.exports = {
|
||||
if (!_.isUndefined(values.password)) {
|
||||
Object.assign(values, {
|
||||
password: bcrypt.hashSync(values.password, 10),
|
||||
passwordChangedAt: new Date().toUTCString(),
|
||||
passwordChangedAt: new Date().toISOString(),
|
||||
});
|
||||
|
||||
if (Object.keys(values).length === 1) {
|
||||
|
||||
Reference in New Issue
Block a user