[Issue 1752] std.date.LocalTimetoUTC applies wrong daylight savings time adjustments in EU timezones

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 29 10:02:11 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1752





------- Comment #3 from grahamc001uk at yahoo.co.uk  2007-12-29 12:02 -------
Thanks, I didn't see issue 1436 as I was only searching for issues for
'LocalTimetoUTC'.

I think line #747:
   time = 0;

in std\date.d is wrong as this seems to make all daylight savings adjustments
occur at midnight local time instead of the actual time (2am or 1am etc.)
retrieved from the registry. This explains the 11pm UTC adjustment when in the
UK timezone. I would think that this would also make all the U.S. daylight
savings adjustments occur at the wrong times (at midnight instead of at 2am
local time as they should).

I think the code is best examined by the original author as I find it rather
difficult to follow.


-- 



More information about the Digitalmars-d-bugs mailing list