mirror of https://github.com/louislam/uptime-kuma
fix(sql): use UTC_TIMESTAMP instead of NOW for consistent time calcul… (#5843)
parent
cd6dc144a7
commit
0b29fd49ad
|
@ -736,7 +736,7 @@ class Database {
|
|||
if (Database.dbConfig.type === "sqlite") {
|
||||
return "DATETIME('now', ? || ' hours')";
|
||||
} else {
|
||||
return "DATE_ADD(NOW(), INTERVAL ? HOUR)";
|
||||
return "DATE_ADD(UTC_TIMESTAMP(), INTERVAL ? HOUR)";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue