I have a javascript that behaves peculiar around DST changes. The error manifest itself by the TV EPG cannot toggle (with navigate button) past the day of the DST change. For example today Sunday 26:th of October where the DST changes.
Trying to navigate to Mondays EPG is impossible. Each button press reloads Sundays EPG. Somehow it seems the javascript code simply adds 24 hours, which doesn't work in this case, because Sunday comprises 25 hours due to the DST change.
Code: Select all
var ONE_DAY = 24*60*60*1000;
Line 686:
/**
* increments or decrements the date in the datepicker by the given amount
*/
function moveDate(offset) {
var currDate = datefield.datepicker("getDate");
currDate.setTime(currDate.getTime() + offset * ONE_DAY);
var now = new Date().getTime();
if (currDate.getTime() + 2*ONE_DAY < now || currDate.getTime() - 31*ONE_DAY > now) {
return;
}
datefield.datepicker("setDate", currDate);
guiactionform.submit();
}
Line 1298:
$('#nextday').click(function() {
moveDate(+1);
});
Regards
zcooler