We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c7d255 + 01660b5 commit d686565Copy full SHA for d686565
backend/models/now_helper.js
@@ -6,7 +6,7 @@ Model.knex(db);
6
7
module.exports = function () {
8
if (config.database.knex && config.database.knex.client === 'sqlite3') {
9
- return Model.raw('date(\'now\')');
+ return Model.raw('datetime(\'now\',\'localtime\')');
10
} else {
11
return Model.raw('NOW()');
12
}
0 commit comments