* Fix regression in Korean and Japanese date formatting (day of week)
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Aug 2006 04:31:02 +0000 (04:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Aug 2006 04:31:02 +0000 (04:31 +0000)
RELEASE-NOTES
languages/Language.php

index a12bae7..1a5a633 100644 (file)
@@ -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 ==
 
index 217945b..e733386 100644 (file)
@@ -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;
        }
 
        /**