TimeZone handlers

This commit is contained in:
Serghey Rodin 2015-05-29 01:50:40 +03:00
commit 5dbadaa730
2 changed files with 73 additions and 1 deletions

View file

@ -30,7 +30,7 @@ elif [ -f "/etc/timezone" ]; then
# Checking symlynks
elif [ -h /etc/localtime ]; then
ZONE=$(readlink /etc/localtime | sed "s/\/usr\/share\/zoneinfo\///")
ZONE=$(readlink /etc/localtime | sed "s%.*share/zoneinfo/%%")
# Parsing zoneinfo (very slow)
else