Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI: TypeError: strftime() argument 1 must be str, not unicode #9

Open
phoebebright opened this issue Dec 7, 2011 · 0 comments
Open

Comments

@phoebebright
Copy link

File "/usr/lib/python2.5/site-packages/Geraldo-0.4.14-py2.5.egg/geraldo/utils.py", line 119, in format_date
return date.strftime(expression)
TypeError: strftime() argument 1 must be str, not unicode

I got this error when I moved the code to the production server, although it was fine on development server. To fix it I just changed the line in utils.py to convert expression to string. Not sure if this is a fix that should be put into the main code or if the real problem is one of my settings somewhere...

Line 118 in utils.py

return date.strftime(str(expression))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant