Last modified: 2014-03-09 11:22:40 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 T57294, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55294 - Issue with timestamp format in userlib.py
Issue with timestamp format in userlib.py
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:58 UTC by Kunal Mehta (Legoktm)
Modified: 2014-03-09 11:22 UTC (History)
2 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:58:58 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1063/
Reported by: nakor-wikipedia
Created on: 2009-10-31 20:53:12
Subject: Issue in userlib.py
Original description:
userlib.contributions\(\) changed the format it outputs. Please revert to the previous format %Y-%m-%dT%H:%M:%SZ .

The new format should be proposed as an option. Just changing the format without compatibility breaks existing scripts.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:59:00 UTC
Below is the patch for fixing this issue:

Index: userlib.py
===================================================================
\--- userlib.py	\(revision 7576\)
+++ userlib.py	\(working copy\)
@@ -249,7 +249,7 @@
for c in result\['query'\]\['usercontribs'\]:
yield \(wikipedia.Page\(self.site\(\), c\['title'\], defaultNamespace=c\['ns'\]\),
c\['revid'\],
\-                  wikipedia.parsetime2stamp\(c\['timestamp'\]\),
\+                  c\['timestamp'\],
c\['comment'\]
\)
nbresults += 1
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:59:02 UTC
Here is the patch for fixing this issue. Please commit it.

Index: userlib.py
===================================================================
\--- userlib.py	\(revision 7869\)
+++ userlib.py	\(working copy\)
@@ -223,7 +223,7 @@
for c in result\['query'\]\['usercontribs'\]:
yield \(wikipedia.Page\(self.site\(\), c\['title'\], defaultNamespace=c\['ns'\]\),
c\['revid'\],
\-                  wikipedia.parsetime2stamp\(c\['timestamp'\]\),
\+                  c\['timestamp'\],
c\['comment'\]
\)
nbresults += 1
Comment 3 Amir Ladsgroup 2013-10-25 13:51:08 UTC
I was able to reproduce

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


Navigation
Links