<?php
$utc = "2014-05-29T04:54:30.934Z";
$date = new DateTime
(date("Y-m-d H:i:s"), new DateTimeZone
('UTC'));
// Step 2: Change the timezone to Europe/Rome
$date->setTimezone(new DateTimeZone('Europe/Rome'));
$current_date = $date->format('Y-m-d');
echo 'date: ', $date->format('r'), PHP_EOL;
echo 'After: ', $current_date, PHP_EOL;
$dt = new DateTime($utc);
echo 'Original: ', $dt->format('r'), PHP_EOL;
$tz = new DateTimeZone('Asia/Kolkata');
$dt->setTimezone($tz);
echo 'After setting timezone: ', $dt->format('r'), PHP_EOL;
PD9waHAKJHV0YyA9ICIyMDE0LTA1LTI5VDA0OjU0OjMwLjkzNFoiOwoKCiRkYXRlID0gbmV3IERhdGVUaW1lKGRhdGUoIlktbS1kIEg6aTpzIiksIG5ldyBEYXRlVGltZVpvbmUoJ1VUQycpKTsKCi8vIFN0ZXAgMjogQ2hhbmdlIHRoZSB0aW1lem9uZSB0byBFdXJvcGUvUm9tZQokZGF0ZS0+c2V0VGltZXpvbmUobmV3IERhdGVUaW1lWm9uZSgnRXVyb3BlL1JvbWUnKSk7CgokY3VycmVudF9kYXRlID0gJGRhdGUtPmZvcm1hdCgnWS1tLWQnKTsKZWNobyAnZGF0ZTogJywgJGRhdGUtPmZvcm1hdCgncicpLCBQSFBfRU9MOwoKZWNobyAnQWZ0ZXI6ICcsICRjdXJyZW50X2RhdGUsIFBIUF9FT0w7CgokZHQgPSBuZXcgRGF0ZVRpbWUoJHV0Yyk7CgplY2hvICdPcmlnaW5hbDogJywgJGR0LT5mb3JtYXQoJ3InKSwgUEhQX0VPTDsKCiR0eiA9IG5ldyBEYXRlVGltZVpvbmUoJ0FzaWEvS29sa2F0YScpOwoKJGR0LT5zZXRUaW1lem9uZSgkdHopOwplY2hvICdBZnRlciBzZXR0aW5nIHRpbWV6b25lOiAnLCAkZHQtPmZvcm1hdCgncicpLCBQSFBfRU9MOw==