|/
|\ISS LINUX™

News (20210723a)
Blog
Install
FAQ
Wiki
Package System
Package Manager
Testimonials
Screenshots
Contact
Donate
Archive
wiki / software / tzdata                                          Edit this page
Edited (4f18dd0) at 2023-07-07 by Dylan Araps
TZDATA [0]
________________________________________________________________________________
The Time Zone Database (called tz, tzdb or zoneinfo) contains code and data that
represent the history of local time for many representative locations around the 
globe.  
Configuration
________________________________________________________________________________
Begin by first verifying that you have tzdata installed:
+------------------------------------------------------------------------------+
|                                                                              |
|   $ kiss b tzdata                                                            |
|                                                                              |
+------------------------------------------------------------------------------+
Look for the available timezones in /usr/share/zoneinfo/:
+------------------------------------------------------------------------------+
|                                                                              |
|   $ ls /usr/share/zoneinfo                                                   |
|                                                                              |
+------------------------------------------------------------------------------+
Write your preferred timezone to the /etc/timezone file:
+------------------------------------------------------------------------------+
|                                                                              |
|   $ echo "TZ" > /etc/timezone                                                |
|                                                                              |
+------------------------------------------------------------------------------+
Remember to replace TZ with with your preferred timezone. For example, if I 
lived in the US Eastern timezone, I would replace TZ with "US/Eastern".
Lastly, copy the preferred timezone file to /etc/localtime:
+------------------------------------------------------------------------------+
|                                                                              |
|   $ cp TZ_PATH /etc/localtime                                                |
|                                                                              |
+------------------------------------------------------------------------------+
Remember to replace TZ_PATH with with the complete timezone path. For the 
example given above, the complete TZ_PATH for "US/Eastern" would be 
"/usr/share/zoneinfo/US/Eastern".
As an optional final step, remove the tzdata package.
+------------------------------------------------------------------------------+
|                                                                              |
|   $ kiss r tzdata                                                            |
|                                                                              |
+------------------------------------------------------------------------------+
References
________________________________________________________________________________
[0] https://github.com/eggert/tz
[1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Timezone
[2] https://wiki.archlinux.org/index.php/System_time
________________________________________________________________________________
Dylan Araps (C) 2019-2021
The registered trademark Linux(R) is used pursuant to a sublicense from the
Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark
on a world­wide basis.