From: Brion Vibber Date: Thu, 3 Aug 2006 04:31:02 +0000 (+0000) Subject: * Fix regression in Korean and Japanese date formatting (day of week) X-Git-Tag: 1.31.0-rc.0~56093 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=48e0c7474b88694639cf18d8cc4eb940eaec6fda;p=lhc%2Fweb%2Fwiklou.git * Fix regression in Korean and Japanese date formatting (day of week) --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a12bae7b1c..1a5a63379c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -111,6 +111,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN See maintenance/installExtension.php * Added Tajic (tg) language file. * (bug 6903) Added Cantonese localisation (zh-yue) +* Fix regression in Korean and Japanese date formatting (day of week) + == Languages updated == diff --git a/languages/Language.php b/languages/Language.php index 217945bc79..e733386831 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -571,11 +571,11 @@ class Language { /** * Calculate the day of the week for a 14-character timestamp - * 0 for Sunday through to 6 for Saturday + * 1 for Sunday through to 7 for Saturday * This takes about 100us on a slow computer */ static function calculateWeekday( $ts ) { - return date( 'w', wfTimestamp( TS_UNIX, $ts ) ); + return date( 'w', wfTimestamp( TS_UNIX, $ts ) ) + 1; } /**