My variable $createdDate
has a value '2014-06-23T01:44:22Z'
something like this in it. It's fetched from database.
And when I convert it into standard format using strtotime(), the time returned is always 2 hours different(ahead) from the orginal variable's time.
$time1 = strtotime($createdDate);
$cretime_formated=date("Y-m-d h:i:s",$time1);
Output of $cretime_formated
is 2014-06-23 03:44:22
instead of 2014-06-23 01:44:22
. Why is there a difference of 2 hours in the time??? Is there anything wrong with my conversion process??