2007年3月23日星期五

HowTo Adjust timezone/time in Linux

HowTo Adjust Timezone/Time in Linux
 
1) The Timezone file is in /usr/share/zoneinfo/...
   find the file what you want and replace /etc/localtime/
 ex: #cp /etc/share/zoneinfo/America/Tiguana /etc/localtime
 2) midify /etc/sysconfig/clock
 ex: #vi /etc/sysconfig/clock
       ZONE="America/Tijuana"
       UTC=false
       ARC=false
   save it and quit.
 3) Set correct time, use 'date MMDDhhmmCCYY.ss' command
    # date 032222582007.55 (MM是月份,DD是日,hh是小时,mm是分钟,CCYY是年份ss是秒数)
     means set the time as 2007-03-22 22:58:55
     and you can also run 'clock -w' write the time into CMOS.
 
 
Your sincere,
------------
Henry Zhu
2007-03-23

没有评论: