mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #21629 -- Added instructions for loading MySQL time zone definitions.
Thanks Aymeric for the suggestion.
This commit is contained in:
parent
8779aa806e
commit
d8d83777eb
@ -305,6 +305,17 @@ The Django adapter is currently only available in the Dev branch.
|
||||
|
||||
.. _release branches: http://dev.mysql.com/downloads/connector/python/
|
||||
|
||||
.. _mysql-time-zone-definitions:
|
||||
|
||||
Time zone definitions
|
||||
---------------------
|
||||
|
||||
If you plan on using Django's :doc:`timezone support </topics/i18n/timezones>`,
|
||||
use `mysql_tzinfo_to_sql`_ to load time zone tables into the MySQL database.
|
||||
This needs to be done just once for your MySQL server, not per database.
|
||||
|
||||
.. _mysql_tzinfo_to_sql: http://dev.mysql.com/doc/refman/5.5/en/mysql-tzinfo-to-sql.html
|
||||
|
||||
Creating your database
|
||||
----------------------
|
||||
|
||||
|
@ -649,6 +649,12 @@ Troubleshooting
|
||||
>>> local.date()
|
||||
datetime.date(2012, 3, 3)
|
||||
|
||||
4. **I get an error** "``Are time zone definitions for your database and pytz
|
||||
installed?``" **pytz is installed, so I guess the problem is my database?**
|
||||
|
||||
If you are using MySQL, see the :ref:`mysql-time-zone-definitions` section
|
||||
of the MySQL notes for instructions on loading time zone definitions.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user