You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 04:11:42 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			333 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			333 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const db     = require('../db');
 | 
						|
const config = require('config');
 | 
						|
const Model  = require('objection').Model;
 | 
						|
 | 
						|
Model.knex(db);
 | 
						|
 | 
						|
module.exports = function () {
 | 
						|
	if (config.database.knex && config.database.knex.client === 'sqlite3') {
 | 
						|
		return Model.raw('datetime(\'now\',\'localtime\')');
 | 
						|
	} else {
 | 
						|
		return Model.raw('NOW()');
 | 
						|
	}
 | 
						|
};
 |