Tuesday, November 7, 2006

timezone offset and apache/php

I noticed a strange thing last week.  After the time change for Daylight Saving time, the internal time on this blog was off.  When I entered a new post via xmlrpc, the resulting post would appear an hour in the future.

After some investigation, I realized that the date php command was returning the local time, but with the time zone offset that corresponds to before the time change.  Once I restarted apache, the offset got reported correctly.

No comments:

Post a Comment

Revolutionizing Air Quality Monitoring: How I Upgraded Our System with Mila Integration for Smart Home Automation

In this blog post , I explained how I set up an air quality monitoring system for our neighborhood. With this setup, we can keep an eye on t...