Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

daylight_savings.com deassigns sys$timezone_name

 
sharon conger
Occasional Advisor

daylight_savings.com deassigns sys$timezone_name

Hi,
I have a program on my system that needs to know the GMT offset for the current time zone. In trying to adhere to the KISS principal, I made the program retrieve the value of the SYS$TIMEZONE_NAME logical and set it to the correct offset if the value was EDT or EST. It was summer when I wrote the program, so I was quite surprised today to find out that when DST ends, the logical doesn't get changed, it just gets deassigned. Is there a reason for this? Is there a way to make it be correctly defined throughout the year? I'm working on VMS 7.3-2.
1 REPLY 1
Hoff
Honored Contributor

Re: daylight_savings.com deassigns sys$timezone_name

I've been involved in this discussion for twenty years now, and with the various oddities involved in TZ and DST over that time.

The daylight_savings.com (sic; it's "daylight saving") tool is probably broken here. Check for ECO kits; there have been various kits here. If not current, get there.

The following will probably fix this case:

$ @sys$manager:utc$time_setup

IMHO, the TZ and DST features will never work entirely right on OpenVMS, pending fundamental architectural changes. These architectural changes will probably break some existing software, so they're comparatively unlikely; we'll continue along with the semiannual festivals of weird TZ and DST values for the foreseeable future. There are just too many assumptions and hacks and stuff that looks at random logical names to ever get this working "right."

If you want the best operation, run UTC and forget DST.