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

Seamless Local Control: Integrating WeatherFlow with Home Assistant Across VLANs

I've been pleased with my Home Assistant setup for some time now. One of my main focuses has been achieving local control. This ensures...