Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Disable DayLight Saving

Status
Not open for further replies.

tahirkhalil

Technical User
Dec 8, 2000
7
0
0
PK
Hi All !

While installing the Solaris 9 on a Sun box - we have selected the time zone Asia, Karachi - which has DayLight setting active. In our Country now DST is disabled and no more applicable - but the operating system still changes the time in April & I think in September. How can I disable the DST setting?
 
You really need to find out whether Sun has issued a patch for the zoneinfo file to modify the appropriate settings for your location.
 
Hi !

Thanks - but this is happening with Solaris 9 - the zone information database contains the settings for DST --
 
That's what I thought. However, unless Sun know about the change and have issued a patch, I can't think of another way of doing this. Others might know differently of course!!
 
Hi,

According to /usr/share/lib/zoneinfo/src/asia file or
zdump -v Asia/Karachi, it seems there is no day light saving for Karachi. My solaris release is Solaris 9 9/04 s9s_u7wos_09 SPARC.

Below example was taken from rule EU. We changed the lines below from europe file to fix DST time according to EET.

Rule EU 1981 max - Mar lastSun 1:00 1:00 S
Rule EU 1996 max - Oct lastSun 2:00 0 -

If it is easy to try ,you can add following line to asia file below to Asia/Karachi rule.I recommend that copy asia file to another place.

Rule Asia/Karachi 2004 max - Mar lastSun 1:00 0 -
You should compile asia file with zic command.
zic asia.
Than try again zdump -v Asia/Karachi. Actual effect needs reboot.

 
I have the following lines with me:

# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Pakistan 2002 max - Apr Sun>=2 0:00 1:00 S
Rule Pakistan 2002 max - Oct 15 0:00 0 -
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Karachi 4:28:12 - LMT 1907
5:30 - IST 1942 Sep
5:30 1:00 IST 1945 Oct 15
5:30 - IST 1951 Sep 30
5:00 - KART 1971 Mar 26 # Karachi Time

and the zdump says its on :

Asia/Karachi Sat Apr 2 18:59:59 2005 UTC = Sat Apr 2 23:59:59 2005 PKT isdst=0
Asia/Karachi Sat Apr 2 19:00:00 2005 UTC = Sun Apr 3 01:00:00 2005 PKST isdst=1
Asia/Karachi Fri Oct 14 17:59:59 2005 UTC = Fri Oct 14 23:59:59 2005 PKST isdst=1
Asia/Karachi Fri Oct 14 18:00:00 2005 UTC = Fri Oct 14 23:00:00 2005 PKT isdst=0

5:00 Pakistan PK%sT # Pakistan Time

I think I could try the change you suggest & will update.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top