Last modified: 2012-03-08 00:56:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 34727 - Results on Special:Search should display wiki time
Results on Special:Search should display wiki time
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 29235
  Show dependency treegraph
 
Reported: 2012-02-26 11:39 UTC by Lejonel
Modified: 2012-03-08 00:56 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Lejonel 2012-02-26 11:39:19 UTC
Search results on Special:Search displays time of last edit using UTC, at least on Commons where I have different user preferences, and logged-out on sv.wikipedia which otherwise uses CET.
I think this time should be displayed using user preferred time. That will make it consistent with the same time displayed at the bottom of articles and in page histories.

I think it should be easy to fix by changing line 649 of SpecialSearch.php[1] from:

 $date = $lang->timeanddate( $timestamp ); 

to

 $date = $lang->timeanddate( $timestamp, true ); 


[1] https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialSearch.php?revision=108712&view=markup
Comment 1 Mark A. Hershberger 2012-02-26 21:07:04 UTC
See Bug 19992.  Fixing this in the way you suggest would probably mean caching problems and won't happen.

*** This bug has been marked as a duplicate of bug 19992 ***
Comment 2 Lejonel 2012-02-28 16:57:45 UTC
Maybe user time is difficult because of caching. I did not think search results were cached.

But if user time is not possible, wiki default time would be better than UTC. For example CET at Swedish Wikipedia, and EET at Finnish Wikipedia. That will make the displayed times consistent for loggedout users and users with the default time preferences.

I will try reopen this bug and change it to display wiki default time.
Comment 3 Chad H. 2012-03-08 00:56:23 UTC
(In reply to comment #1)
> See Bug 19992.  Fixing this in the way you suggest would probably mean caching
> problems and won't happen.
> 

Search results pages aren't cached in squid like you're suggesting.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links