[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"; "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_FORMATS = [
DATE_FORMAT, DATE_FORMAT,
"YYYY-MM-DD HH:mm:ss", "YYYY-MM-DD HH:mm:ss",
@ -49,7 +49,7 @@ define([
} }
UTCTimeFormat.prototype.format = function (value) { 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) { UTCTimeFormat.prototype.parse = function (text) {