I am trying to convert a string date to the correct timezone value, I would really appreciate any help. I’ve tried the following.
date_default_timezone_set('Etc/GMT-5');
date_default_timezone_set('GMT');
Source:
2011-12-28T00:14:33-05:00
GMT offset value: -05:00
String to time:
1325049273
format: “j M g:ia”
Showing as:
27 Dec 9:09pm
Should be showing as:
28 Dec 12:14am
this worked =?