1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

Browser EPG small bug fix

Debug code removed,
Chrome doesn't like seconds when setting datetime-local input
This commit is contained in:
mvoelkel 2016-02-02 22:05:21 +01:00
parent 81b40eb781
commit f5c2d12e28

View File

@ -198,7 +198,7 @@ function Current() {
if( input.type == "datetime-local" ) if( input.type == "datetime-local" )
{ {
var d1 = new Date(d.getTime() - d.getTimezoneOffset() * 60000); var d1 = new Date(d.getTime() - d.getTimezoneOffset() * 60000);
input.value = d1.toISOString().substr(0,19); input.value = d1.toISOString().substr(0,16);
} }
// else // else
// { // {
@ -283,15 +283,8 @@ function ScrollTo()
{ {
if( input.type == "datetime-local" ) if( input.type == "datetime-local" )
{ {
// d = new Date(input.value);
d = new Date(Date.parse(input.value) + d.getTimezoneOffset() * 60000); d = new Date(Date.parse(input.value) + d.getTimezoneOffset() * 60000);
document.getElementById("searchtext").value = "**>" + input.value + "<**";
} }
// Text = d.getTimezoneOffset().toString();
// var d = new Date(Text);
// var box = document.getElementById("event0");
// box.getElementsByClassName("event_date")[0].firstChild.nodeValue = d.toLocaleString();
Position = Search(d) Position = Search(d)
Scroll(0); Scroll(0);
} }