Umm, no, it's not.

I live just outside Glasgow, same timezone as London (and the rest of the UK), and I can assure you that it's been DST here since Sunday. The offset is correct, the DST is not.


On Tuesday, April 1, 2003, at 05:35 pm, Dave Rolsky wrote:


On Tue, 1 Apr 2003, Richard Smith wrote:

Using DateTime-TimeZone-0.11 and DateTime-0.08.

Here we go...

use DateTime;

$dt     = DateTime->new(     year            => 2003,
                                                month   => 2,
                                                day             => 26,
                                                hour            => 18,
                                                minute  => 41,
                                                second  => 0,
                                                time_zone       => "Europe/London");

$usertimezone = $dt->offset;

print $usertimezone . "\n" . $dt->is_dst . "\n";


Result is two 0's.

Um, that's correct. 2003-02-26 is still in Standard time, with an offset
of 0 in London.



-dave


/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/




Reply via email to