diff --git a/ChangeLog b/ChangeLog index eea411353..e4ba14b4b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-10-03 Geert Lund + * libraries/common.lib.php3: fixed localised_date() function: + - get correct month name (and not month+1) + 2001-10-02 Marc Delisle * lang/bulgarian-win1251.inc.php3 updates, thanks to Peter Petrov diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index e5a1ef1e6..1359dc48d 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1009,7 +1009,7 @@ window.parent.frames['nav'].location.replace(''); } $date = ereg_replace('%[aA]', $day_of_week[(int)strftime('%w',$timestamp)], $datefmt); - $date = ereg_replace('%[bB]', $month[(int)strftime('%m',$timestamp)], $date); + $date = ereg_replace('%[bB]', $month[(int)strftime('%m',$timestamp)-1], $date); return strftime($date, $timestamp); } // end of the 'localised_date()' function