use more utc timezone

This commit is contained in:
slonkaphone 2024-12-30 01:06:21 +03:00
parent fe707e4569
commit ee3c0b6f3c

View file

@ -110,7 +110,7 @@ case "$action" in
exit
fi
db_query "INSERT INTO posts (username, contents, ts) VALUES (
db_query "SET TIME ZONE 'UTC'; INSERT INTO posts (username, contents, ts) VALUES (
$(escape_sql_str "$user"),
$(escape_sql_str "$status"),
$(escape_sql_str "$(date --rfc-3339=seconds)")::timestamp