[Time Format] Append Z instead of zone offset

...for brevity (reduce visual noise)
This commit is contained in:
Victor Woeltjen 2016-03-21 14:29:24 -07:00
parent 5624c7d545
commit a411bac331

View File

@ -28,7 +28,7 @@ define([
) {
"use strict";
var DATE_FORMAT = "YYYY-MM-DD HH:mm:ss.SSSZ",
var DATE_FORMAT = "YYYY-MM-DD HH:mm:ss.SSS",
DATE_FORMATS = [
DATE_FORMAT,
"YYYY-MM-DD HH:mm:ss",
@ -49,7 +49,7 @@ define([
}
UTCTimeFormat.prototype.format = function (value) {
return moment.utc(value).format(DATE_FORMAT);
return moment.utc(value).format(DATE_FORMAT) + "Z";
};
UTCTimeFormat.prototype.parse = function (text) {