Skip to content

Instantly share code, notes, and snippets.

@lauris
lauris / fix_django_timezones.sh
Created Aug 15, 2014
Fix Django timezones issue: "Database returned an invalid value in QuerySet.datetimes(). Are time zone definitions for your database and pytz installed?"
View fix_django_timezones.sh
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql