in reply to Re^2: Time::Piece reversibility
in thread Time::Piece reversibility
it's still showing as 5pm rather than 10am:
Yes, that's definitely the problem. It seems that localtime is changing the epoch as well as setting the offset so you're always getting back to the same displayed hour when you apply both (and gmtime is of course doing neither). Good spot.
|
|---|