Commit 5c1302fa authored by Igor Kulikov's avatar Igor Kulikov

Update date generator

parent 4d295af5
...@@ -139,7 +139,7 @@ API.txt for details. ...@@ -139,7 +139,7 @@ API.txt for details.
if (!opts.timezone || opts.timezone === "browser") { if (!opts.timezone || opts.timezone === "browser") {
return new Date(ts); return new Date(ts);
} else if (typeof moment !== "undefined" && typeof moment.tz !== "undefined") { } else if (typeof moment !== "undefined" && typeof moment.tz !== "undefined") {
return moment(ts).tz(opts.timezone).toDate(); return moment(moment(ts).tz(opts.timezone).format("YYYY-MM-DDTHH:mm:ss")).toDate();
} else { } else {
return new Date(ts); return new Date(ts);
} }
......
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