Setting the timezone: Difference between revisions
Clandmeter (talk | contribs) |
Clandmeter (talk | contribs) No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Note|Only for NON uclibc installs!!!}} | |||
glibc based installs use different timezone setup. | glibc based installs use different timezone setup. | ||
Line 5: | Line 6: | ||
apk add tzdata | apk add tzdata | ||
ls /usr/share/zoneinfo | ls /usr/share/zoneinfo | ||
Suppose you want to use Brussels | |||
First copy the proper zone to localtime | |||
cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime | cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime | ||
Now specify your timezone | |||
echo "Europe/Brussels" > /etc/timezone | echo "Europe/Brussels" > /etc/timezone | ||
date | date | ||
Result: Wed Mar 8 00:46:05 CET 2006 | |||
You can now remove the other timezones | |||
apk del tzdata |
Revision as of 23:22, 11 January 2013
Note: Only for NON uclibc installs!!!
glibc based installs use different timezone setup.
apk add tzdata ls /usr/share/zoneinfo
Suppose you want to use Brussels First copy the proper zone to localtime
cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime
Now specify your timezone
echo "Europe/Brussels" > /etc/timezone date
Result: Wed Mar 8 00:46:05 CET 2006
You can now remove the other timezones
apk del tzdata