Page MenuHomePhabricator

Upload log and filehistory section timestamps differ
Open, LowPublic

Description

Author: saibotrash

Description:
As posted in #wikimedia-tech - but without answer there:

Compare the times at https://commons.wikimedia.org/w/index.php?title=Special:Log&page=File%3AWiki-Sticker.JPG vs. https://commons.wikimedia.org/wiki/File:Wiki-Sticker.JPG#filehistory But: there was no file version on 20:41 when I checked the file page.

At that time I told the user to use the "upload" link on top of the desc page (there was written that the file page exists but not file version has been uploaded). I guess he did (according to his answer to me) but the log / file version times are totally off.


Version: unspecified
Severity: minor

Details

Reference
bz34427
TitleReferenceAuthorSource BranchDest Branch
Phabricator/Phorge deploy 2024-05-05 (Wikimedia Hackathon Edition)repos/phabricator/deployment!40brennenwork/2024-05-05-releasewmf/stable
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:16 AM
bzimport set Reference to bz34427.
bzimport added a subscriber: Unknown Object (MLST).

Saibo, I'm not seeing anything that looks wrong here, but perhaps it's a timezone thing, or the problem repaired itself. What's wrong with the timestamps?

saibotrash wrote:

The "20:41" is UTC, too.

https://commons.wikimedia.org/w/index.php?title=Special:Log&page=File%3AWiki-Sticker.JPG → 2012-02-15T19:39:30

https://commons.wikimedia.org/wiki/File:Wiki-Sticker.JPG#filehistory → 2012-02-15T19:39:27

3 seconds off although both should be the same, shouldn't they?

Btw: the same 3 seconds off are visible here: https://commons.wikimedia.org/wiki/File:Wiki-Sticker_1.JPG

And, yes, the problem is repaired.. but I want to know the root cause and avoid it re-appearing. ;)

saibotrash wrote:

Hmm.. well - maybe simply a mediawiki bug: https://commons.wikimedia.org/w/index.php?title=Special:Log&page=File%3AAaatestSonnepalmenstrand90.jpg current file version timestamp on the "filehistory" section on the file page differs by 7 seconds compared with the log entry. Interestingly the is no difference at the oldest file version.

That's pretty annoying. There is no way to say for sure "This log entry belongs to this version". You can say this with a huge probability but not for sure.

This also causes problems if you want to write Apps that should display one user's uploads.

While writing MediaWiki:JSONListUploads.js on Commons, I had to convert each MW-date to a javaScript date and then comparing each date not having more than 10s difference. Well, this works fine but other authors would be certainly thankful if the timestamps would match and if one would be able easier to track page-moves.

The same is true for the revision-timestamp and "added-to-a-category-date".

3 seconds is a kind of long time difference for this, but all in all - the action of making a log entry and uploading the file are separate things, and each timestamp is the time each step in the process was completed.