Page 1 of 1

Convert date to a different timezone

Posted: Fri Oct 29, 2004 3:06 am
by Tubbietoeter
Hi,

I couldn't find a function to convert dates to different timezones.
Do you know how to achieve this?
I need to allow users on a website to chose their local timezone and display the dates in that timezone. Server time is UTC.

Thanks,

Steff

Posted: Fri Oct 29, 2004 7:12 am
by kettle_drum
Add remove the required time yourself:

User in New York

Code: Select all

$time = 3784638563;
$dif = -5;
$new_time = $time+(60*60*$dif)