|/
|\ISS

News
Blog

Wiki

Install KISS
FAQ

Package System
Package Manager
Software

Guidestones

Testimonials
Screenshots
Team

Contact
Donate
Website
IRC

GitHub
Git (mirror)
ML (archive)



wiki / software / tzdata                                          Edit this page

Edited (8a55f77) at 2021-07-02 by Dilyn Corner


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 && kiss i 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-2020
kiss-community (C) 2020-2021
Dilyn Corner   (C) 2021

Linux(R) is the registered trademark of Linus Torvalds in the U.S. and
other countries.