11 lines
183 B
Plaintext
11 lines
183 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# list all timezones with their offsets
|
||
|
ZONES="$(timedatectl list-timezones)"
|
||
|
|
||
|
for ZONE in $ZONES
|
||
|
do
|
||
|
OFFSET="$(env TZ=${ZONE} date +%:z)"
|
||
|
echo "$ZONE $OFFSET"
|
||
|
done
|