1247 – No time zone info for India

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1247 - No time zone info for India
Summary: No time zone info for India
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2007年05月25日 09:13 UTC by Steve Teale
Modified: 2015年06月09日 05:15 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Steve Teale 2007年05月25日 09:13:27 UTC
There’s a bug in Phobos date.d. In getLocalTZA you skip the case where the return value from GetTimeZoneInformation is TIME_ZONE_ID_UNKNOWN.
The documentation says:
Windows Server 2003, Windows XP/2000/NT: This value is returned if daylight saving time is not used in the current time zone, because there are no transition dates.
This screws you up in India, since there is no daylight saving time here.
Comment 1 Walter Bright 2007年07月01日 14:08:21 UTC
Fixed DMD 1.018 and DMD 2.002


AltStyle によって変換されたページ (->オリジナル) /