View Single Post

  #7 (permalink)  
Old 12-17-2004
Andy Hassall
 
Posts: n/a
Default Re: Dates - back to basics.

On Fri, 17 Dec 2004 11:32:09 GMT, "d" <d@example.com> wrote:

>But what about the fact that it doesn't do it all the time? On my machine,
>both of your examples yielded the expected result - both +0000...


Timezone settings.

andyh@server:~/tmp$ echo $TZ
Europe/London

andyh@server:~/tmp$ php -q tz.php
1970-01-01 01:00:00 +0100
1972-01-01 00:00:00 +0000

andyh@server:~/tmp$ TZ=UTC php -q tz.php
1970-01-01 00:00:00 +0000
1972-01-01 00:00:00 +0000

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Reply With Quote