mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-20 12:27:29 +08:00
fix(sql): use UTC_TIMESTAMP instead of NOW for consistent time calcul… (#5843)
This commit is contained in:
@@ -736,7 +736,7 @@ class Database {
|
|||||||
if (Database.dbConfig.type === "sqlite") {
|
if (Database.dbConfig.type === "sqlite") {
|
||||||
return "DATETIME('now', ? || ' hours')";
|
return "DATETIME('now', ? || ' hours')";
|
||||||
} else {
|
} else {
|
||||||
return "DATE_ADD(NOW(), INTERVAL ? HOUR)";
|
return "DATE_ADD(UTC_TIMESTAMP(), INTERVAL ? HOUR)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user