Was my server time changed?

Avatar
  • Answered
I am in the Eastern US time zone and running programs that depend on the server time being accurate and consistent. Was my server time changed recently? Daylight savings time is scheduled to end this Sunday, November 3, 2013 at 2 AM. Is it possible the DST change was processed a week early? Please advise.
Avatar
JacobIMH
Hello David, and thank you for your question. With the domain name you provided us with this question, it would appear you're on a dedicated server that has its time zone set to PDT currently, so Daylight savings time adjustments haven't taken place yet or it would have switched to PST. You can set the server time zone in WHM if you needed to update this. You can also inspect your cron logs to see if there was a lapse during any specific time period, and I don't appear to be seeing one:
cat /var/log/cron | awk '{ gsub(":"," "); print $1,$2,$3":00"}' | uniq
This gives output like:
Oct 27 03:00
Oct 27 04:00
Oct 27 05:00
Oct 27 06:00
Oct 27 07:00
...
Oct 30 08:00
Oct 30 09:00
Oct 30 10:00
Your /var/log/cron-20131027 log has the logged activity from Oct 20 03:00 to Oct 22 02:00. So at least from October 20th, it doesn't appear there was a skipped hour of cron activity. Was there any specific process, or scheduled cron job that you see being off? There could possibly be an issue with the script itself causing it to talk longer to run, or something of that nature making it seem like the time on the server is off. - Jacob