Fix: libraries/common.lib.php3: fixed localised_date() function

This commit is contained in:
Geert Lund
2001-10-03 08:08:04 +00:00
parent 42d5fbfb9a
commit c0c89a7665
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2001-10-03 Geert Lund <glund@silversoft.dk>
* libraries/common.lib.php3: fixed localised_date() function:
- get correct month name (and not month+1)
2001-10-02 Marc Delisle <lem9@users.sourceforge.net> 2001-10-02 Marc Delisle <lem9@users.sourceforge.net>
* lang/bulgarian-win1251.inc.php3 updates, thanks to Peter Petrov * lang/bulgarian-win1251.inc.php3 updates, thanks to Peter Petrov

View File

@@ -1009,7 +1009,7 @@ window.parent.frames['nav'].location.replace('<?php echo $reload_url; ?>');
} }
$date = ereg_replace('%[aA]', $day_of_week[(int)strftime('%w',$timestamp)], $datefmt); $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); return strftime($date, $timestamp);
} // end of the 'localised_date()' function } // end of the 'localised_date()' function