NYCPHP Meetup

[nycphp-talk] Timezone weirdness

Hans Zaunere zaunere at yahoo.com
Thu Jun 13 21:37:40 EDT 2002


> 
> I ran this on a server:
> -------------------------------------------
> <?php
> echo '<br>TZ offset HR: '.date('O');
> echo '<br>'.strftime('%Z');
> ?>
> -------------------------------------------
> 
> and I get:
> 
> -------------------------------------------
> TZ offset HR: +0400
> Eastern Daylight Time
> -------------------------------------------

Odd.  I ran this exact code on FreeBSD and Linux boxes and it worked as
expected, -0400.  What platform is this?  If *nix check that your TZ
setting is correct (man tzsetup I think).  If it is, I can only see
this as a bug.  Check bugs.php.net for this, noting your PHP version
and platform.

HZ


> 
> I don't understand; if strftime('%Z') reports 'EDT', how does that
> jive with
> date('O') reporting +0400, which to my understanding would put the
> server TZ
> around Kabul?
> 
> Thanks!
> 
> --
> Wellington
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the talk mailing list