aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-02-21 01:15:53 +0000
committerKristian Lyngstol <kly@kly.no>2016-02-21 01:15:53 +0000
commit0b3b2494e290c8b0381423568529550add2a2ab2 (patch)
tree55296affe81a0511a26ab6ebb645e352bc5f3d7e /web
parentd371e83f0035f20a49c354ca2a1fc0b88f733d27 (diff)
nms: Fix firefox replay
by actually following the spec
Diffstat (limited to 'web')
-rw-r--r--web/nms.gathering.org/nms2/index.html2
-rw-r--r--web/nms.gathering.org/nms2/js/nms.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/web/nms.gathering.org/nms2/index.html b/web/nms.gathering.org/nms2/index.html
index 81f68e5..111dd52 100644
--- a/web/nms.gathering.org/nms2/index.html
+++ b/web/nms.gathering.org/nms2/index.html
@@ -310,7 +310,7 @@
shortcuts. See the help menu for an overview of keyboard
shortcuts.</p>
<div class="input-group">
- <input type="text" class="form-control" placeholder="YYYY-MM-DD hh:mm:ss" id="nowPicker">
+ <input type="text" class="form-control" placeholder="YYYY-MM-DDThh:mm:ss" id="nowPicker">
<span class="input-group-btn">
<button class="btn btn-default" onclick="changeNow();">Travel</button>
</span>
diff --git a/web/nms.gathering.org/nms2/js/nms.js b/web/nms.gathering.org/nms2/js/nms.js
index 30d6ba8..27e4684 100644
--- a/web/nms.gathering.org/nms2/js/nms.js
+++ b/web/nms.gathering.org/nms2/js/nms.js
@@ -253,7 +253,7 @@ function checkNow(now)
{
if (Date.parse(now)) {
var d = new Date(Date.parse(now));
- var str = d.getFullYear() + "-" + (parseInt(d.getMonth())+1) + "-" + d.getDate() + " ";
+ var str = d.getFullYear() + "-" + (parseInt(d.getMonth())+1) + "-" + d.getDate() + "T";
str += d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();
return str;
@@ -273,7 +273,7 @@ function checkNow(now)
function stringToEpoch(t)
{
var foo = t.toString();
- foo = foo.replace('T',' ');
+// foo = foo.replace('T',' ');
var ret = new Date(Date.parse(foo));
return parseInt(parseInt(ret.valueOf()) / 1000);
}