View Single Post
Quote:
Originally Posted by danielcompton View Post
I am running OS X 10.7, is my time zone not being picked up and adjusted for in the script?
Thanks for picking this up – I wonder if there is a daylight savings subtlety at work.

If you enter this in Terminal.app on your system, do you get a correct local time adjustment ?

Code:
date +%z | awk '{if (substr($1,1,1)!="+") {printf "+"} else {printf "-"} print substr($1,2,4)}'
or perhaps more to the point, what does this return, and does it look right ?
Code:
date +%z