Skip to content

Commit 01660b5

Browse files
committed
Fixed now_helper for sqlite: it should also returns the time.
1 parent 7c7d255 commit 01660b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/models/now_helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Model.knex(db);
66

77
module.exports = function () {
88
if (config.database.knex && config.database.knex.client === 'sqlite3') {
9-
return Model.raw('date(\'now\')');
9+
return Model.raw('datetime(\'now\',\'localtime\')');
1010
} else {
1111
return Model.raw('NOW()');
1212
}

0 commit comments

Comments
 (0)