Basically I’ve got this:
$data_start = '2012-06-07T13:00:00Z';
if (($timestamp = strtotime($data_start)) === false) {
return "The string ($data_start) is bogus";
} else {
return "$data_start == " . date('l dS \o\f F Y H:i:s', $timestamp);
}
And it is returning:
"Thursday 07th of June 2012 14:00:00"
Why on earth is strtotime adding 1 more hour!? Anything to do with timezones?
the last Z on $data_start tells that the date is in UTC time.
I suppose your local timezone is UTC +1 ?
if you want to always work with UTC time, you can use something like : date_default_timezone_set (‘UTC’) to bypass your local timezone setting