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

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2004-04-20 Marc Delisle <lem9@users.sourceforge.net>
* libraries/tbl_change.js: was always returning current day
2004-04-20 Michal Cihar <michal@cihar.com>
* libraries/tbl_change.js, css/phpmyadmin.css.php: Added time editing to
calendar.

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"';