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

This commit is contained in:
Đă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

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