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

@@ -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('%[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