Tcl Source Code

View Ticket
Login
Ticket UUID: 4af4d24baaae6b77c88dfbe0ce2dde201cd17daa
Title: Timezone setting fails for non-DST TZs under Windows
Type: Bug Created on: 2014-03-05 02:07:57
Submitter: cmcc Assigned to: kbk
Subsystem: 06. Time Measurement Severity: Minor
Priority: 5 Medium Last modified: 2014-03-18 11:17:19
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:
Under Windows in some timezones (those which do not have Daylight Savings Time,) clock.tcl's [GuessWindowsTimeZone] fails, because it does not expect to find the StandardStart and DaylightStart registry values to be empty.  This results in a fallback to :localtime timezone when the registry has actually supplied all the information necessary to discover the TZ.

Perversely, Windows reports DaylightBias of -60, even though it can never be used.

The observed values reported by Windows are: Bias -420 StandardBias 0 DaylightBias -60 StandardStart "" DaylightStart ""