Created
August 15, 2014 16:21
-
-
Save lauris/241479d953012a2cadc7 to your computer and use it in GitHub Desktop.
Fix Django timezones issue: "Database returned an invalid value in QuerySet.datetimes(). Are time zone definitions for your database and pytz installed?"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql |
Cheers!
This also worked to solve ValueError: Database returned an invalid datetime value. Are time zone definitions for your database installed?
error
In my case, it happened when visiting access logs in django-defender admin panel though
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect!