HOW THE DSTSHIFT UTILITY WORKS:
When DSTSHIFT.NLM is loaded, it will look for the file DSTCFG.TXT in the same directory the NLM was loaded from. If no config file is found, the NLM will not load. The server's Time Zone string is compared to the list of time zones affected by the US-based change. If the Time Zone string is not an exact match, a message is added to the log file and no changes are made to the server's settings.
Otherwise, the config file is read and the parameters "SET Start Of Daylight Savings Time" and "SET End Of Daylight Savings Time" are identified, and the server's AUTOEXEC.NCF is examined to make sure the parameters exist there as well. The "old" SET parameter lines are commented out, in the AUTOEXEC.NCF, with an additional line identifying DSTSHIFT as the source of the change, and the new values from DSTCFG.TXT are placed in the file. (If the alternate files DSSTART.NCF and DSEND.NCF are referenced from the autoexec, the changes will be made and comment text added to those files instead.)
Next, the SET parameters from DSTCFG.TXT are set on the server so that the change takes place immediately, and the new values are written to the NetWare Registry.
All of these steps are logged in the file DSTLOG.TXT, which will show up in the same directory (containing DSTSHIFT.NLM and DSTCFG.TXT). If failures occur, that information will be in the log file.
To specify a different location for the CFG and LOG files, you can load the utility DSTSHIFT with an additional path specified on the command line, like this:
LOAD DSTSHIFT C:\DOS
The NLM unloads itself when the changes are complete. If the changes are not completed, the NLM load will fail and error information will be written to DSTLOG.TXT (in the same directory as DSTCFG.TXT).
Attached: DSTSHIFT.NLM, DSTCFG.TXT
*Time Zones (and NetWare Time Zone string values) affected by the DST Start/End date change:
US Alaska Time (AKST9AKDT)
US & Canada Pacific Time (PST8PDT)
US & Canada Mountain Time (MST7MDT)
US & Canada Central Time (CST6CDT)
US & Canada Eastern Time (EST5EDT)
Atlantic Time (Canada) (AST4ADT) (includes Bermuda)
Newfoundland Time (CNT3:30NDT)
Note: Type TIME at the NetWare server console to view current values for DST Start and End dates, and the Time Zone string.
|