Jason Moiron  committed 6b4e8e9

change the way we format time as bb has started putting tz's.. ignore the tz since they are all utc

  • Participants
  • Parent commits d1fc907

Comments (0)

Files changed (1)

File bitbucket/

 def to_datetime(timestring):
     """Convert one of the bitbucket API's timestamps to a datetime object."""
     format = '%Y-%m-%d %H:%M:%S'
+    timestring = timestring.split('+')[0].strip()
     return datetime.datetime(*time.strptime(timestring, format)[:7])
 class BitBucket(object):