mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-20 14:02:34 +02:00
fix(sql): use UTC_TIMESTAMP instead of NOW for consistent time calculations
This commit is contained in:
parent
cd6dc144a7
commit
4dc394896a
1 changed files with 1 additions and 1 deletions
|
@ -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)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue