Re: Upgrading to internal DateTime

From: Date: Fri, 05 Dec 2008 10:47:22 +0000
Subject: Re: Upgrading to internal DateTime
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-42114@lists.php.net to get a copy of this message
A unix timestamp is in UTC, offsets are stored and applied seperately. See tzset(3). Unless someone has misconfigured their system, that is. On Fri, Dec 5, 2008 at 10:16 AM, Karsten Dambekalns <karsten@typo3.org> wrote: > Hi Derick. > > Derick Rethans wrote: >> >> This is not the correct thing to do, as you will lose timezone >> information. The W3C format only stores UTC offsets (in the form of +00:00). >> However, that same UTC offset can be used in different areas with different >> DST changes. Best thing is to store in Unix timestamps. > > And how does a unix timestamp preserve timezone information? Or am I > completely off track? > > Regards, > Karsten > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#42114) next »