NYCPHP Meetup

NYPHP.org

Timezone weirdness

Wellington Fan beef at interport.net
Thu Jun 13 10:33:07 EDT 2002


Folks,

Sometimes I just don't understand time...

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
-------------------------------------------

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




More information about the talk mailing list