Commits

Matthew Schinckel committed c29d186 Merge

Merge

  • Participants
  • Parent commits d9b4f29, 3fc8ddd

Comments (0)

Files changed (1)

timedelta/helpers.py

     datetime.timedelta(2)
     """
     # This is the format we sometimes get from Postgres.
-    d = re.match(r'((?P<days>\d+) days )?(?P<hours>\d+):'
+    d = re.match(r'((?P<days>\d+) days? )?(?P<hours>\d+):'
                  r'(?P<minutes>\d+)(:(?P<seconds>\d+))?',
                  unicode(string))
     if d: