Commit 122fd04e authored by Leigh Stoller's avatar Leigh Stoller

Add DateStringGMT() to convert date to GMT.

parent dcd59162
......@@ -756,6 +756,12 @@ function HaveStoragePool()
return 0;
}
# Convert local time to GMT date string.
function DateStringGMT($date)
{
return gmdate("Y-m-d\TH:i:s\Z", strtotime($date));
}
#
#
# DB Interface.
......
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