This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

« | »

timezone offset and apache/php

Paul Westbrook | 08 November, 2006 00:24

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.

Technorati tags: , , , ,

Add comment

Topic

Text

Your name

Your email address

Your personal page (if any)




Powered by LifeType
Design by Book of Styles