From: Ed Page Date: Fri, 25 Jun 2010 00:00:02 +0000 (-0500) Subject: Bugfix: bad job recognizing PM, so if you got a message in the morning and then at... X-Git-Url: http://vcs.maemo.org/git/?p=theonering;a=commitdiff_plain;h=422b35adb869e943ee019e1d45d24100dfa0d7e4 Bugfix: bad job recognizing PM, so if you got a message in the morning and then at night, it got messed up --- diff --git a/src/gvoice/backend.py b/src/gvoice/backend.py index 0661d0c..cceeb72 100755 --- a/src/gvoice/backend.py +++ b/src/gvoice/backend.py @@ -775,7 +775,7 @@ def google_strptime(time): """ abbrevTime = time[:-3] parsedTime = datetime.datetime.strptime(abbrevTime, "%m/%d/%y %I:%M") - if time[-2] == "PN": + if time.endswith("PM"): parsedTime += datetime.timedelta(hours=12) return parsedTime