Forum Moderators: coopster
<?php
$timestamp = time();
$date_now = date('m/d/y g:i a', $timestamp);
print $date_now;
?>
It is 12:03pm at where I live (USA West)
But for some reason the above code gives me 08/28/05 4:03 am
Is there a way to specify the time for US West?
Regards
Opiston
Just add something like this to your script before calling the date function:
putenv("TZ=America/New_York");