I want to get current time of US/Eastern timezone. How would I achieve that.
I have tried following code but it is displaying my system's time.
<?php
date_default_timezone_set('US/Eastern');
$currenttime = date('h:i:s:u');
list($hrs,$mins,$secs,$msecs) = split(':',$currenttime);
//print "&time2=".$secs."&time1=".$mins."&time0=".$hrs;
?>
I am using this script with flash so commented out 'print' line.
See Question&Answers more detail:os