From 2779cb2bb95d995bebc4284af88cbe5321d3c691 Mon Sep 17 00:00:00 2001 From: vini Date: Sun, 19 Jul 2026 21:42:33 -0300 Subject: [PATCH] Force C locale for sky offset decimal point Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_015HtPHsTnDcLVSCiF5FGHZj --- set-sky-time.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-sky-time.sh b/set-sky-time.sh index f7f8c0a..0f0ae68 100755 --- a/set-sky-time.sh +++ b/set-sky-time.sh @@ -13,6 +13,6 @@ fi target_epoch=$(date -d "today $TARGET" +%s) || exit 2 now_epoch=$(date +%s) -offset_h=$(awk "BEGIN { printf \"%.4f\", ($target_epoch - $now_epoch) / 3600 }") +offset_h=$(LC_ALL=C awk "BEGIN { printf \"%.4f\", ($target_epoch - $now_epoch) / 3600 }") printf '%s\n' "$offset_h" > "$STATE_FILE" printf 'Relógio do céu em %s de hoje (offset %sh)\n' "$TARGET" "$offset_h"