-Fix timestamp calculation problem for the UI

This commit is contained in:
martin 2011-03-31 19:10:18 -04:00
parent 1c8a9a88ae
commit 76cfe7714b
3 changed files with 2 additions and 6 deletions

View File

@ -973,10 +973,6 @@ class Show_DAL {
{
global $CC_CONFIG, $CC_DBC;
$timestamp = explode(" ", $timeNow);
$date = $timestamp[0];
$time = $timestamp[1];
$sql = "SELECT si.starts as start_timestamp, si.ends as end_timestamp, s.name, s.id, si.id as instance_id, si.record"
." FROM $CC_CONFIG[showInstances] si, $CC_CONFIG[showTable] s"
." WHERE si.show_id = s.id"

View File

@ -375,5 +375,5 @@ function convertDateToPosixTime(s){
} else
sec = time[2];
return Date.UTC(year, month, day, hour, minute, sec, msec);
return Date.UTC(year, month-1, day, hour, minute, sec, msec);
}

View File

@ -134,7 +134,7 @@ function convertDateToPosixTime(s){
} else
sec = time[2];
return Date.UTC(year, month, day, hour, minute, sec, msec);
return Date.UTC(year, month-1, day, hour, minute, sec, msec);
}
function getFileExt(filename){