CC-2956: Undefined variable: endDateTime in

/usr/share/airtime/application/models/Show.php on line 807,
referer: http://localhost/Schedule

- fixed
This commit is contained in:
James 2011-10-11 16:36:01 -04:00
parent 42d2393bdd
commit 20e9002310
4 changed files with 14 additions and 6 deletions

View file

@ -48,6 +48,17 @@ function removeAddShowButton(){
span.remove();
}
function pad(number, length) {
var str = '' + number;
while (str.length < length) {
str = '0' + str;
}
return str;
}
function makeTimeStamp(date){
var sy, sm, sd, h, m, s, timestamp;
sy = date.getFullYear();
@ -57,7 +68,7 @@ function makeTimeStamp(date){
m = date.getMinutes();
s = date.getSeconds();
timestamp = sy+"-"+ sm +"-"+ sd +" "+ h +":"+ m +":"+ s;
timestamp = sy+"-"+ pad(sm, 2) +"-"+ pad(sd, 2) +" "+ pad(h, 2) +":"+ pad(m, 2) +":"+ pad(s, 2);
return timestamp;
}