To modify a time zone:
1>
Find the appropriate time zone file/usr/share/zoneinfo/asia/shanghai
Replace the current/etc/localtime file with this file.
Or find the server you think is Standard time, and then
#scp Root@xxx.xxx.xxx.xxx:/etc/localtime/etc/localtime
2>
Modify the/etc/sysconfig/clock file and modify it to:
Zone= "Asia/shanghai"
Utc=false
Arc=false
Modified Date Time:
1>
Modify Date Time with date
#date-S 08/24/2006
#date-S 13:02:00
2>
Synchronizing the BIOS clock, forcing the system time to be written to the CMOS
#clock-W
Also, view Bois time with #hwclock-R
#tzselect can modify the time zone interactively
Linux Modify system time zone
1. View the current time zone
# Vi/etc/sysconfig/clock
2. Modify Settings Time zone
Method (1) # Tzselect Method (2 is limited to Redhat Linux and CentOS) # Timeconfig
3. Copy the appropriate time zone file, replace the system default time zone
# cp/usr/share/zoneinfo/$ main time zone/$ time zone/etc/localtime for Chinese server: # cp/usr/share/zoneinfo/asia/shanghai/etc/localtime
4. Write the current time to the BIOS for permanent entry (avoid failure after reboot)
# Hwclock