(bug 6182) Date passed in "sp-newimages-showfrom" not adjusted to user time preferences
authorRob Church <robchurch@users.mediawiki.org>
Mon, 5 Jun 2006 01:59:45 +0000 (01:59 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 5 Jun 2006 01:59:45 +0000 (01:59 +0000)
RELEASE-NOTES
includes/SpecialNewimages.php

index ff49f82..c742a4b 100644 (file)
@@ -416,7 +416,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   tag. The sanitizer still needs to learn how to make well-formed XML
   in this case.
 * Fix fatal error when specifying illegal name for manual thumbnail
-* (bug 6184) Use shinier Linker::userLink() to make user links in Special:Undelete
+* (bug 6184) Use shinier Linker::userLink() to make user links in
+  Special:Undelete
 * (bug 6170) Update for Kashubian translation (csb)
 * (bug 6191) Update to Indonesian translation (id) #18
 * (bug 6114) Update to Walloon localization (wa)
@@ -426,6 +427,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   interspersed into your ordered lists.
 * (bug 5021) Transcluding the same special page twice now works
 * Add 'SiteNoticeBefore' and 'SiteNoticeAfter' hooks
+* (bug 6182) Date passed in "sp-newimages-showfrom" not adjusted to user time
+  preferences
 
 == Compatibility ==
 
index 2d693ed..35b4b88 100644 (file)
@@ -178,7 +178,7 @@ function wfSpecialNewimages( $par, $specialPage ) {
                $botpar='';
        }
        $now = wfTimestampNow();
-       $date = $wgLang->timeanddate( $now );
+       $date = $wgLang->timeanddate( $now, true );
        $dateLink = $sk->makeKnownLinkObj( $titleObj, wfMsg( 'sp-newimages-showfrom', $date ), 'from='.$now.$botpar.$searchpar );
 
        $botLink = $sk->makeKnownLinkObj($titleObj, wfMsg( 'showhidebots', ($hidebots ? wfMsg('show') : wfMsg('hide'))),'hidebots='.($hidebots ? '0' : '1').$searchpar);