I want to display the time in different timezones, so i m using this
$date=new DateTime(null, new DateTimeZone('America/Los_Angeles')); echo $date->format('Y-m-d H:i:sP') . "\n";
$date=new DateTime(null, new DateTimeZone('Europe/Paris')); echo $date->format('Y-m-d H:i:sP') . "\n";
So the above code display the correct hours but it’s displaying the minutes and seconds same for all the timezone.
Please help
Thanks in advance
Dave
Because the difference of time is
9 hrs 0 minutes.Paris
Los Angels