mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#1953] hammer.py: Continent/Country/Zone TZ
This commit is contained in:
@@ -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}"
|
||||
|
Reference in New Issue
Block a user