in reply to Date::Manip time zone is resetting in some cases

With daylight saving at 02.00 1 Nov 2015 there would be 8 hours between 00:00 and 07:00

poj
  • Comment on Re: Date::Manip time zone is resetting in some cases

Replies are listed 'Best First'.
Re^2: Date::Manip time zone is resetting in some cases
by tcabeen (Novice) on Nov 22, 2015 at 06:48 UTC
    Yes, that's why I chose to use Date::Manip in the first place. My solution needs to be able to handle the short and long days of the year. I also need it to remain in the time zone that I set without arbitrarily changing.
      ..without arbitrarily changing.

      Are you referring to the change from PST to PDT ?

      poj

        Oh good grief. You are awesome.

        I modified my print statement to demonstrate how dimwitted I am. Thank you, poj, for taking the time to help me find the detail I was missing.

        print $dateObjStart->printf('%Y%m%dT%H:%M%z %Z') . "\n\n";

        Clearly, I was confusing the offset with the actual time zone. Classic inability to see the forest for the trees. Thank you again!