Created
December 2, 2020 16:31
-
-
Save alivx/6ab75674ee0ec1bcfabd5642fa14ef03 to your computer and use it in GitHub Desktop.
alpine-linux-timezone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment