Operating System - OpenVMS
1828197 Members
2319 Online
109975 Solutions
New Discussion

system time call problem after DST change

 
SOLVED
Go to solution
Gregg Parmentier
Frequent Advisor

system time call problem after DST change


I'm running VMS 7.1 and I do manual changes for CDT/CST, so I didn't think I'd have a problem with the new dates.

Turns out we have C code here (DEC C V5.7-004) that takes the raw seconds in the time filed and calls localtime to convert it to the date and time instead of just asking the system for the local time. This code is used all over the place.

Anyone know for sure if it's using the file defined by sys$localtime for rules.

I've found the source for that timezone rule file. How do I convert that the the usable format after I add the corrected rules?

Do we need to recompile everything that uses this code to get it fixed, or just restart it after I fix the rule file? I guess I'll find the answer to this last one pretty quickly if I get the rest of the stuff taken care of.
2 REPLIES 2
Hein van den Heuvel
Honored Contributor
Solution

Re: system time call problem after DST change

Our friend Hoff made a pretty extensive writeup under:

http://64.223.189.234/node/72

http://www.hoffmanlabs.org
--> new
[Popular Content]
--> DST

It points to the FAQ and HP sites as needed.


He also has a blog article on DST:

http://64.223.189.234/node/133


Cheers,
Hein.
Gregg Parmentier
Frequent Advisor

Re: system time call problem after DST change

7.1 was enough behind the current version that it took a while to find the right reference, but running zic was the answer. And no recompiling necessary, woo hoo!