[Bug 1190421] Re: perl converts localtime into gmt before subtraction

2013-06-13 Thread Rafael van Horn
** Package changed: ubuntu => perl (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1190421 Title: perl converts localtime into gmt before subtraction To manage notifications about this bug g

[Bug 1190421] [NEW] perl converts localtime into gmt before subtraction

2013-06-12 Thread Rafael van Horn
Public bug reported: When I compare two timestamps in perl, I am getting wrong result, it's shifted by a timezone. The code: use Time::Local; use Time::Piece; $time_now = localtime; # first time is specified by localtime $time_future = Time::Piece->strptime("2013-08-13 01:30:00", "%Y-%m-%d %H: