Explorar el Código

Fixed now_helper for sqlite: it should also returns the time.

Jocelyn Le Sage hace 5 años
padre
commit
01660b5b80
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backend/models/now_helper.js

+ 1 - 1
backend/models/now_helper.js

@@ -6,7 +6,7 @@ Model.knex(db);
 
 module.exports = function () {
 	if (config.database.knex && config.database.knex.client === 'sqlite3') {
-		return Model.raw('date(\'now\')');
+		return Model.raw('datetime(\'now\',\'localtime\')');
 	} else {
 		return Model.raw('NOW()');
 	}