convert: fix SVN date parser dropping the final whole second digit
authorDavid J. Mellor <dmellor@whistlingcat.com>
Thu, 06 Dec 2007 13:10:25 -0800
changeset 5617 924fd86f0579
parent 5614 5133e9f61700
child 5618 6e1a61b14bbf
child 5621 badbefa55972
convert: fix SVN date parser dropping the final whole second digit
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Tue Oct 23 10:39:24 2007 +0000
+++ b/hgext/convert/subversion.py	Thu Dec 06 13:10:25 2007 -0800
@@ -590,7 +590,7 @@
             # Example SVN datetime. Includes microseconds.
             # ISO-8601 conformant
             # '2007-01-04T17:35:00.902377Z'
-            date = util.parsedate(date[:18] + " UTC", ["%Y-%m-%dT%H:%M:%S"])
+            date = util.parsedate(date[:19] + " UTC", ["%Y-%m-%dT%H:%M:%S"])
 
             log = message and self.recode(message)
             author = author and self.recode(author) or ''