projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f9c80
)
Bugfix: bad job recognizing PM, so if you got a message in the morning and then at...
author
Ed Page
<eopage@byu.net>
Fri, 25 Jun 2010 00:00:02 +0000
(19:00 -0500)
committer
Ed Page
<eopage@byu.net>
Fri, 25 Jun 2010 00:00:02 +0000
(19:00 -0500)
src/gvoice/backend.py
patch
|
blob
|
history
diff --git
a/src/gvoice/backend.py
b/src/gvoice/backend.py
index
0661d0c
..
cceeb72
100755
(executable)
--- 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