mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-31 19:39:20 +08:00 
			
		
		
		
	Fix: Incorrect database check in sqlHourOffset (#3706)
This commit is contained in:
		| @@ -653,7 +653,7 @@ class Database { | |||||||
|      * |      * | ||||||
|      */ |      */ | ||||||
|     static sqlHourOffset() { |     static sqlHourOffset() { | ||||||
|         if (this.dbConfig.client === "sqlite3") { |         if (Database.dbConfig.type === "sqlite") { | ||||||
|             return "DATETIME('now', ? || ' hours')"; |             return "DATETIME('now', ? || ' hours')"; | ||||||
|         } else { |         } else { | ||||||
|             return "DATE_ADD(NOW(), INTERVAL ? HOUR)"; |             return "DATE_ADD(NOW(), INTERVAL ? HOUR)"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user