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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36727, the corresponding Phabricator task for complete and up-to-date bug report information.
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