[wp-hackers] Re: Sqlite

Ryan Boren ryan at boren.nu
Sat Jun 25 00:22:40 GMT 2005


On Sat, 2005-06-25 at 11:55 +1200, Terrence Wood wrote:
> If you setenv then the DST is taken care of for you... no intervention 
> required.
>
> I live in New Zealand, if I do this:
> 
> putenv('TZ=Auckland/Pacific'));
> 
> then entries made during DST are NZDT, otherwise they are NZST. PHP 
> works it out for me.

That is not at all reliable given that some servers have no time zone
database or only a very crippled one.  PHP works it out, except when it
can't.

Ryan

> On 25 Jun 2005, at 10:40 AM, Ryan Boren wrote:
> >
> > The timezone for a blog can change due to DST.  If post times change
> > back and forth with DST, their permalinks are not so permanent.  So, we
> > need to store UTC time plus a UTC offset for each post.




More information about the wp-hackers mailing list