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
Convert date to a different timezone
Moderator: General Moderators
-
Tubbietoeter
- Forum Contributor
- Posts: 149
- Joined: Fri Mar 14, 2003 2:41 am
- Location: Germany
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
Add remove the required time yourself:
User in New York
User in New York
Code: Select all
$time = 3784638563;
$dif = -5;
$new_time = $time+(60*60*$dif)