i'm parsing some strings posted into the app into datetime.
hardcoded the entry to debug, running this in python directly works
fine:
>>> datetime.strptime("Fri Aug 22 17:13:14 PDT 2008", "%a %b %d %H:%M:%S %Z %Y")
datetime.datetime(2008, 8, 22, 17, 13, 14)
in my app engine python code, hardcoding the same line, the following
failure to parse occurs:
ERROR 2008-08-23 18:04:19,026 __init__.py] Traceback (most recent
call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/webapp/__init__.py", line 501, in __call__
handler.post(*groups)
File "/Users/rich/dev/hoopy/hoopy.py", line 69, in post
article.articleDate = datetime.strptime("Fri Aug 22 17:13:14 PDT
2008", "%a %b %d %H:%M:%S %Z %Y")
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/_strptime.py", line 330, in strptime
(data_string, format))
ValueError: time data did not match format: data=Fri Aug 22 17:13:14
PDT 2008 fmt=%a %b %d %H:%M:%S %Z %Y
ideas?