date problem

This commit is contained in:
Marc Delisle
2004-04-20 19:46:36 +00:00
parent 67285d7263
commit ff02ffe2fc
2 changed files with 7 additions and 2 deletions

View File

@@ -254,9 +254,11 @@ function initCalendar() {
dispmonth = 1 + month;
if (window.opener.dateType == 'datetime' || window.opener.dateType == 'date') {
actVal = formatNum4(year) + "-" + formatNum2(dispmonth) + "-" + formatNum2(day);
// actVal = formatNum4(year) + "-" + formatNum2(dispmonth) + "-" + formatNum2(day);
actVal = formatNum4(year) + "-" + formatNum2(dispmonth) + "-" + formatNum2(i);
} else {
actVal = "" + formatNum4(year) + formatNum2(dispmonth) + formatNum2(day);
// actVal = "" + formatNum4(year) + formatNum2(dispmonth) + formatNum2(day);
actVal = "" + formatNum4(year) + formatNum2(dispmonth) + formatNum2(i);
}
if (i == day) {
style = ' class="selected"';