diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-06-29 10:32:55 +0200 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-06-29 10:32:55 +0200 |
commit | 25bda93e085c809d021adfa588b08fbce00ad7ee (patch) | |
tree | d170b72a820ade674bfa01c5b70ba8cddad0c624 /web | |
parent | 480028f783aea36f7420fac1162a6ff76998fc3e (diff) |
js: Oplog tweaks for dates
Firefox....
Diffstat (limited to 'web')
-rw-r--r-- | web/js/nms-oplog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/nms-oplog.js b/web/js/nms-oplog.js index 740385c..42b29dc 100644 --- a/web/js/nms-oplog.js +++ b/web/js/nms-oplog.js @@ -85,7 +85,7 @@ nmsOplog._updateComments = function(limit,prefix,timefield,cutoff) { tr = table.insertRow(-1); td1 = tr.insertCell(0); td2 = tr.insertCell(1); - var date = new Date(nmsData.oplog.oplog[v]['timestamp']); + var date = new Date(nmsData.oplog.oplog[v]['timestamp'].replace(" ","T").replace("+00","")); if (timefield == "time") { td1.textContent = date.toTimeString().replace(/:\d\d .*$/,""); } else { |