Hi Markos,

>> On Sat, Jan 25, 2014 at 8:31 AM, Marko3 <[email protected] 
>> <javascript:>>wrote:
>>
>>> I get this error on my Ubuntu 12.04 machine with mysql 5.5 after I 
>>> imported some Wordpress content to blog_blogpost.
>>>
>>> ValueError at /admin/blog/blogpost/
>>>
>>> Database returned an invalid value in QuerySet.dates(). Are time zone 
>>> definitions and pytz installed?

I had the same error some weeks ago though not sure if it is the same
cause in your case. Anyway, for me it was the default timezone
configured in the MySQL server.
Changing the default time zone of MySQL from 'SYSTEM' to 'UTC' solved it
for me.

I wrote about all the details at
http://www.pending.io/django-mysql-time-zones-and-how-to-fix-it/.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to