1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-22 22:59:44 +02:00

fix: Fix saving milliseconds for timestamps

This commit is contained in:
Maksim Eltyshev 2023-06-12 23:54:57 +02:00
parent 6c4db967c2
commit d386c82973
5 changed files with 8 additions and 12 deletions

View file

@ -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) {