Last modified: 2014-05-15 08:10:39 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 T57324, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55324 - Commons Delinker local clock dependency
Commons Delinker local clock dependency
Status: NEW
Product: Pywikibot
Classification: Unclassified
delinker (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 05:07 UTC by Kunal Mehta (Legoktm)
Modified: 2014-05-15 08:10 UTC (History)
2 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 05:07:07 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/647/
Reported by: Anonymous user
Created on: 2008-02-28 09:38:07
Subject: Commons Delinker local clock dependency
Assigned to: btongminh
Original description:
I tried to run delinker.py on a machine, which has time set in the future \(+30 minutes\). It is impossible for CD to work correctly \(because it does not read deletion logs\). I have created a small workaround. I don't know python at all \(I prefer Perl:\), so the code may look a little funny.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 05:07:09 UTC
patch to commonsdelinker/delinker.py
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 05:07:11 UTC
Logged In: YES 
user\_id=1806226
Originator: NO

If the time is set to the future using timezones, it should not be a problem, since time.gmtime\(\) returns the timestamp in UTC.

I don't think it is a good idea to patch CD because your computer is not configured correctly.
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 05:07:12 UTC
- **priority**: 5 --> 4
- **assigned_to**: nobody --> btongminh
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 05:07:14 UTC
Logged In: YES 
user\_id=2022153
Originator: NO

This patch eliminates problems with different time set on client or server side. It also solves limit=500 issue \(which is useful when we start delinker with parameter -since on larger project\). I don't really care if you apply this patch \(because I am already using it\), but for some people \(non-programmers\) it may be quite useful.

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


Navigation
Links