Skip to content

Commit 0b29fd4

Browse files
authored
fix(sql): use UTC_TIMESTAMP instead of NOW for consistent time calcul… (#5843)
1 parent cd6dc14 commit 0b29fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ class Database {
736736
if (Database.dbConfig.type === "sqlite") {
737737
return "DATETIME('now', ? || ' hours')";
738738
} else {
739-
return "DATE_ADD(NOW(), INTERVAL ? HOUR)";
739+
return "DATE_ADD(UTC_TIMESTAMP(), INTERVAL ? HOUR)";
740740
}
741741
}
742742

0 commit comments

Comments
 (0)