mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
fix: Fix saving milliseconds for timestamps
This commit is contained in:
parent
a6cfad4d35
commit
8578883fac
5 changed files with 8 additions and 12 deletions
|
@ -1,16 +1,12 @@
|
|||
const bcrypt = require('bcrypt');
|
||||
|
||||
exports.seed = (knex) => {
|
||||
const date = new Date().toUTCString();
|
||||
|
||||
return knex('user_account').insert({
|
||||
exports.seed = (knex) =>
|
||||
knex('user_account').insert({
|
||||
email: 'demo@demo.demo',
|
||||
password: bcrypt.hashSync('demo', 10),
|
||||
isAdmin: true,
|
||||
name: 'Demo Demo',
|
||||
username: 'demo',
|
||||
subscribeToOwnCards: false,
|
||||
createdAt: date,
|
||||
updatedAt: date,
|
||||
createdAt: new Date().toISOString(),
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue