summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2021-06-29 12:21:48 +0200
committerAndrei Pavel <andrei@isc.org>2021-07-01 09:06:59 +0200
commitfbaf186be159e959e51d96c377d1152efd7ff6c7 (patch)
tree179a93f37e00e46cb7bf067c39364c8f7b19d6bc /hammer.py
parent[#1956] bump version to 1.9.10-git (diff)
downloadkea-fbaf186be159e959e51d96c377d1152efd7ff6c7.tar.xz
kea-fbaf186be159e959e51d96c377d1152efd7ff6c7.zip
[#1953] hammer.py: Continent/Country/Zone TZ
Diffstat (limited to 'hammer.py')
-rwxr-xr-xhammer.py2
1 files changed, 1 insertions, 1 deletions
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}"