发信人: queenking() 
整理人: yard(1999-11-29 15:37:15), 站内信件
 | 
 
 
【 在 easenet (Playman) 的大作中提到: 】
 : 单位里sun的时区都设置成了PRC,
 : 但是每到四月和九月的某天,时间就会跳来跳去...
 : 我知道是夏令制的设置在作怪.
 : 但不知道如何改这个设置...
 :    .......
 #1> su
 #2> cd /usr/share/lib/zoneinfo
 #3> cp asia asia.origin           #just a backup
 #4> vi asia
     in this file ,find such 2 lines:
  Rule PRC 1986  max   -    Sep     Sun>=11 0:00    0      S
  Rule PRC 1987  max   -    Apr     Sun>=10 0:00    1:00   D          a nd change them into: 
  Rule PRC 1986  1991   -    Sep     Sun>=11 0:00    0     S
  Rule PRC 1987  1991   -    Apr     Sun>=10 0:00    1:00  D     
     and save, quit
 #5> zic asia
 #6> cp Asia/Shanghai  ./PRC
 
 this file(/usr/share/lib/zoneinfo/PRC) should be copy-and-workable in  any SUN workstation (I have only test it among some SUN workstations:U ltra 1,Solaris 2.5.1)
 
 notes: 1. Solaris 2.6 or higher should not need any midifications
        2. to SUN OS 4.1.X or lower, the last "copy" operation is not n eeded 
  -- ※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.101.191.130]
  | 
 
 
 |