1. Try extract this subroutine from you script and run it outside of your script.
2. Is your TZ variable set?
3. Try run with env TZ=US/Pacific
4. Try run system tools (like 'date) which report time to make sure they recognize timezone correctly
In reply to Re^2: why are timegm and timelocal returning the same epoch seconds values
by vsespb
in thread why are timegm and timelocal returning the same epoch seconds values
by kehansen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |