docs:man:timezone
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
docs:man:timezone [2008-12-18 10:48] – always use upgrade mode install glen | docs:man:timezone [2015-05-15 16:07] (current) – glen | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | |||
====== Timezone ====== | ====== Timezone ====== | ||
+ | |||
Time zones are special settings, which are used to change Universal Time Clock (UTC) to a local time. | Time zones are special settings, which are used to change Universal Time Clock (UTC) to a local time. | ||
What we need is to install a **tzdata** package. | What we need is to install a **tzdata** package. | ||
- | < | + | < |
+ | # poldek -u tzdata | ||
</ | </ | ||
Now edit the **/ | Now edit the **/ | ||
- | < | + | < |
+ | TIMEZONE=" | ||
</ | </ | ||
Time zones can be found in **/ | Time zones can be found in **/ | ||
Line 16: | Line 17: | ||
To apply changes - restart a timezone service | To apply changes - restart a timezone service | ||
- | < | + | < |
+ | # service timezone restart | ||
</ | </ | ||
+ | ===== Time Sync ===== | ||
+ | |||
+ | If your host BIOS clock is terribly wrong, you can fix the date from Internet: | ||
+ | |||
+ | * using '' | ||
+ | [root@rescue /pld]# date | ||
+ | Sun Aug 3 03:35:46 CEST 2008 | ||
+ | [root@rescue /pld]# rdate -s time-a.nist.gov | ||
+ | [root@rescue /pld]# date | ||
+ | Fri May 15 16:03:19 CEST 2015 | ||
+ | </ | ||
+ | * using '' | ||
+ | |||
+ | **NB!**: Don't forget to sync Hardware clock: | ||
+ | < | ||
+ | [root@rescue /pld]# hwclock | ||
+ | Sun Aug 3 03:39:30 2008 -0.720527 seconds | ||
+ | [root@rescue /pld]# hwclock --systohc | ||
+ | [root@rescue /pld]# hwclock | ||
+ | Fri May 15 16:06:11 2015 -0.095274 seconds | ||
+ | [root@rescue / | ||
+ | </ | ||
| | ||
docs/man/timezone.txt · Last modified: 2015-05-15 16:07 by glen