diff options
author | Andrei Pavel <andrei@isc.org> | 2021-06-29 12:21:48 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2021-07-01 09:06:59 +0200 |
commit | fbaf186be159e959e51d96c377d1152efd7ff6c7 (patch) | |
tree | 179a93f37e00e46cb7bf067c39364c8f7b19d6bc /hammer.py | |
parent | [#1956] bump version to 1.9.10-git (diff) | |
download | kea-fbaf186be159e959e51d96c377d1152efd7ff6c7.tar.xz kea-fbaf186be159e959e51d96c377d1152efd7ff6c7.zip |
[#1953] hammer.py: Continent/Country/Zone TZ
Diffstat (limited to 'hammer.py')
-rwxr-xr-x | hammer.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}" |