Difference between revisions of "Setting the timezone"

From Alpine Linux
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Obsolete}}
  
{{Note|Please note: Only for NON uclibc installs}}
+
Timezone setting is now handled by [[Setup-alpine#setup-timezone]]
 +
 
 +
------
 +
 
 +
{{Note|Only for NON uclibc installs!!!}}
  
 
glibc based installs use different timezone setup.
 
glibc based installs use different timezone setup.
Line 13: Line 18:
 
  date
 
  date
 
Result: Wed Mar  8 00:46:05 CET 2006
 
Result: Wed Mar  8 00:46:05 CET 2006
 +
 +
You can now remove the other timezones
 +
apk del tzdata
 +
 +
 +
[[Category:System Administration]]

Latest revision as of 08:50, 6 May 2020

Out of date clock icon.svg
This material is obsolete ...

Please feel free to help us make an up-to-date version. (Discuss)

Timezone setting is now handled by Setup-alpine#setup-timezone


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