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"