mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-03 17:13:33 +00:00 
			
		
		
		
	Fixed now_helper for sqlite: it should also returns the time.
This commit is contained in:
		@@ -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()');
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user