in reply to Date::Manip - date differences - one hour

What are you trying to do?! It's a minor miracle that ParseDate can handle something like 2014-10-1008:11:02PDT at all!

You should have better luck using %z than semi-meaningless %Z. Do you also have the problem with %z? Maybe you have a misconfigured system. Today, perl -MPOSIX -E'say strftime("%z", localtime)' should return +0200 for Swedes.

Replies are listed 'Best First'.
Re^2: Date::Manip - date differences - one hour
by denzil_cactus (Sexton) on Feb 25, 2015 at 04:44 UTC
    Thanks for your input guys!!

    I just set this export TZ=GMT and it worked

    Got the help from http://www.perlmonks.org/bare/?node_id=289914
    If you are your application from cron then TZ=GMT needs to be set in the cron daemon.