Commit aacd1ef1 authored by Leigh B Stoller's avatar Leigh B Stoller

Convert plain timestamps to GMT dates.

parent 45a12148
......@@ -812,6 +812,9 @@ function DateStringGMT($date)
if (is_null($date) || $date == "" || $date == "0000-00-00 00:00:00") {
return null;
}
elseif (is_int($date)) {
gmdate("Y-m-d\TH:i:s\Z", $date);
}
return gmdate("Y-m-d\TH:i:s\Z", strtotime($date));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment