From 1ff6dff6c7f22f2677391db022f0b725907ec147 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 5 Jun 2006 01:59:45 +0000 Subject: [PATCH] (bug 6182) Date passed in "sp-newimages-showfrom" not adjusted to user time preferences --- RELEASE-NOTES | 5 ++++- includes/SpecialNewimages.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ff49f82df0..c742a4b766 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialNewimages.php b/includes/SpecialNewimages.php index 2d693ed392..35b4b88bab 100644 --- a/includes/SpecialNewimages.php +++ b/includes/SpecialNewimages.php @@ -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); -- 2.20.1