TIME ZONE CONVERSION USING PHP DATETIME CLASS

Following on from my post last month about problems with PEAR daylight saving, here’s a quick example of using the PHP DateTime Class which was introduced recently (PHP 5.2). Convert from UTC to Europe/London local time: $time_object = new DateTime(’2011-04-19 … Continue reading