mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-19 21:52:35 +02:00
fix(sql): use UTC_TIMESTAMP instead of NOW for consistent time calcul… (#5843)
This commit is contained in:
parent
cd6dc144a7
commit
0b29fd49ad
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue