On 27/06/14 23:01, cercatrova2 wrote:

I'm getting this error when I save a blog post in admin (it does in fact seem to get saved to the db) and when I try to access the blog post list.

Interestingly I'm getting this error at the same line as the poster of "global name 'pytz' is not defined" a short while ago. Both seem to be timezone related. I have USE_TZ set to True, TIME_ZONE set to "Europe/Amsterdam" (the same as the host time zone), and time zones imported into MySQL.



DatabaseError at /admin/blog/blogpost/

Incorrect datetime value: '%Y-%m-%d 00:00:00'

Error during template rendering

In template /usr/local/lib/python3.3/dist-packages/grappelli_safe/templates/admin/change_list.html, error at line 140

Incorrect datetime value: '%Y-%m-%d 00:00:00'



Solved by backing out the import of the time zones into MySQL. The datetimes on the blog posts are nevertheless getting saved in UTC so contrary to the Django doc the time zone info in MySQL doesn't seem to be necessary.




--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to