]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1953] hammer.py: Continent/Country/Zone TZ
authorAndrei Pavel <andrei@isc.org>
Tue, 29 Jun 2021 10:21:48 +0000 (13:21 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 1 Jul 2021 07:06:59 +0000 (10:06 +0300)
hammer.py

index a243b299f2b1dee3172de34829180c0c42ba117d..9e76ff4350f3adca65cbbb919d95dc331a41c814 100755 (executable)
--- 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}"