Last modified: 2011-12-14 17:37:27 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 T31895, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29895 - Import should warn about timestamps in the future.
Import should warn about timestamps in the future.
Status: NEW
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.17.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-14 13:37 UTC by Daniel A. R. Werner
Modified: 2011-12-14 17:37 UTC (History)
0 users

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


Attachments

Description Daniel A. R. Werner 2011-07-14 13:37:13 UTC
When exporting pages from a wiki where the local server clock doesn't work right and you have a data which lays in the future, e.g. year 2020, and you import this in another wiki where the clock works normal, the wiki won't change the timestamp.

This is illogical since there can't be any revision made in a future date so in my opinion the timestamp should be set to the current timestamp when importing.

The future timestamp is causing some confusions in the page history as well. The revision is always listed on top even if there is a newer revision when the text was updated after the import.
Comment 1 Brion Vibber 2011-07-14 18:11:08 UTC
If the date were incorrectly in the past, you'd also end up with incorrect results. But at least when you move the data around, it stays consistently incorrect. :)

Automatically rewriting the timestamp to the current time would mean that you have no way to correct the dates later (whereas if you knew how much the clock was off, you could go into the DB and correct them all in a batch).

I'm not sure we can really do much better than accepting the given data, perhaps with a warning.
Comment 2 Daniel A. R. Werner 2011-07-18 20:28:33 UTC
That might be true when you export/import an article around one wikifarm/server but not over server borders. In that case you don't even know where the import comes from not to mention about weird time settings. In this case I would expect not to end up with impossible timestamps. Especially since this is very confusing in the page history and could drive one nuts when he doesn't know about the bug and the timestamp is just a few hours/days ahead and not years.

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


Navigation
Links