Convert GMT to Local timezone in PHP

Following code snippet converts a date time in GMT to Local timezone.