Hi!

I'm using DateTime::TimeZone to get my current time. Shouldn't daylight
saving time be handled by the DateTime module?

In $date I'm obtaining the time with less an hour than it should so I
believe DST is not being considered. How can I obtain the current time
regardless it's in DST mode or not?

Here's my script:

 use 5.14.2;
 use warnings;
 use DateTime::TimeZone;

 my $tz = DateTime::TimeZone->new( name => 'Europe/Lisbon' );
 my $date = DateTime->now();
 print $date;

Best regards.

Reply via email to