tool to handle DST switches automatically
- Size
- 48K (49,308 bytes)
- Added
- 2026-11-20 17:29
- Downloads
- 1
- Long Description
- This little tool is almost a bug fixed clone of the tool "ClockDaemon". Features: --------- - keeps the hardware clock at GMT, - patches battclock.resource so that reads and writes to the hardware clock are transparently adjusted, - handles daylight savings time, - detects DST changes while computer is running and during startup, - optionally runs a command when DST changes, - includes DSTCheck program for use in scripts, - optionally patches locale.library to give correct offset during DST Installation: ------------- Copy WatchDST and DSTCheck to C:, and add Run <NIL: >NIL: WatchDST <command> LOCALEPATCH to your User-Startup, where <command> is a program you want to be executed when daylight savings time begins or ends. Store an appropriate (see timezone.doc) timezone string in ENVARC:TZ. The switch LOCALEPATCH will make WatchDST patch the OpenLocale() function in locale.library. When OpenLocale() is called with a NULL argument to get the default locale setting, the field loc_GMTOffset will be set to the correct value. Caution: Some clever programs make a DST correction of their own. This will blow up now, so you have to disable that. Reboot and reset your clock to your local time via the Time preferences program. WatchDST notices the start or end of daylight savings time regardless if your computer is running at that time or not. (If it is not running, the change command will be executed the next time WatchDST is started.) ATTENTION: The command you want to have executed must terminate or WatchDST will hang!
- SHA-256
00b573ab384ea8c14ba34e0281cc09dbd8361e318c98f903df26584a704da405