From fbaf186be159e959e51d96c377d1152efd7ff6c7 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Tue, 29 Jun 2021 13:21:48 +0300 Subject: [#1953] hammer.py: Continent/Country/Zone TZ --- hammer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hammer.py') diff --git a/hammer.py b/hammer.py index a243b299f2..9e76ff4350 100755 --- a/hammer.py +++ b/hammer.py @@ -1008,7 +1008,7 @@ def _get_local_timezone(): fi # brute force: for Alpine, FreeBSD - for i in $(find /usr/share/zoneinfo | cut -d '/' -f 5- | grep -E '^[A-Z][a-z]+/[A-Z][a-z]+$' | sort -uV); do + for i in $(find /usr/share/zoneinfo | cut -d '/' -f 5- | grep -E '^[A-Z][a-z]+/[A-Z][a-z]+.*$' | sort -ruV); do unset TZ if test "$(date)" = "$(TZ="${i}" date)"; then printf '%s\n' "${i}" -- cgit v1.2.3