User Tools

Site Tools


docs:man:timezone

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:man:timezone [2008-12-18 10:48]
glen always use upgrade mode install
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. ​
  
-<​file>#​ poldek -u tzdata+<​file>​ 
 +# poldek -u tzdata
 </​file>​ </​file>​
 Now edit the **/​etc/​sysconfig/​timezone** file.  Now edit the **/​etc/​sysconfig/​timezone** file. 
  
-<​file>​TIMEZONE="​Europe/​Warsaw"​+<​file>​ 
 +TIMEZONE="​Europe/​Warsaw"​
 </​file>​ </​file>​
 Time zones can be found in **/​usr/​share/​zoneinfo** folder. ​ Time zones can be found in **/​usr/​share/​zoneinfo** folder. ​
Line 16: Line 17:
 To apply changes - restart a timezone service ​ To apply changes - restart a timezone service ​
  
-<​file>#​ service timezone restart+<​file>​ 
 +# service timezone restart
 </​file>​ </​file>​
  
 +===== Time Sync =====
 +
 +If your host BIOS clock is terribly wrong, you can fix the date from Internet:
 +
 +  * using ''​rdate'',​ a rdate server from [[http://​tf.nist.gov/​tf-cgi/​servers.cgi|here]]:​ <​code>​
 +[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
 +</​code>​
 +  * using ''​ntpdate''​
 +
 +**NB!**: Don't forget to sync Hardware clock:
  
 +<​code>​
 +[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 /​pld]# ​
 +</​code>​
  
  ​[[:​Docs:​man| TOC]]   ​[[:​Docs:​man| TOC]] 
  
  
docs/man/timezone.1229593723.txt.gz · Last modified: 2015-05-15 16:07 (external edit)