fix(sql): use UTC_TIMESTAMP instead of NOW for consistent time calcul… (#5843)

pull/5842/head^2
Đăng Khoa 2025-05-18 04:33:00 +07:00 committed by GitHub
parent cd6dc144a7
commit 0b29fd49ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)";
}
}