Convert time and date from one time zone to another in PHP. Don't ever manage time adding or subtracting seconds, there is more to datetime than meets the eye.
Source code viewer
// Using the default timezone used by all date/time functions in a script, this is not thread safe. $date = new DateTime('2013-06-07 15:37:00', new DateTimeZone('Europe/Tallinn')); // OR // Using the date class, this is thread safe. $date = new DateTime('2013-06-07 15:37:00', new DateTimeZone('Europe/Tallinn')); $date->setTimezone(new DateTimeZone('Pacific/Chatham')); echo $date->format('Y-m-d H:i');Programming Language: PHP