Bugfix: bad job recognizing PM, so if you got a message in the morning and then at...
authorEd Page <eopage@byu.net>
Fri, 25 Jun 2010 00:00:02 +0000 (19:00 -0500)
committerEd Page <eopage@byu.net>
Fri, 25 Jun 2010 00:00:02 +0000 (19:00 -0500)
src/gvoice/backend.py

index 0661d0c..cceeb72 100755 (executable)
@@ -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