mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 16:03:38 +00:00
13 lines
272 B
JavaScript
13 lines
272 B
JavaScript
const db = require('../db');
|
|
const config = require('../lib/config');
|
|
const Model = require('objection').Model;
|
|
|
|
Model.knex(db);
|
|
|
|
module.exports = function () {
|
|
if (config.isSqlite()) {
|
|
return Model.raw("datetime('now','localtime')");
|
|
}
|
|
return Model.raw('NOW()');
|
|
};
|