From fe707e4569c2e07cf9b7d366390e365b6a759d59 Mon Sep 17 00:00:00 2001 From: slonkaphone Date: Mon, 30 Dec 2024 01:03:28 +0300 Subject: [PATCH] use utc timezone --- blogin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blogin.sh b/blogin.sh index f2f196e..8aa3559 100644 --- a/blogin.sh +++ b/blogin.sh @@ -44,7 +44,7 @@ case "$action" in ;; posts) - db_rows "SELECT * FROM posts" | + db_rows "SET TIME ZONE 'UTC'; SELECT * FROM posts" | jq -r 'map([.contents, .username, .ts, null, 0]) | select(. != [])' exit ;;