mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed test failures on MySQL.
Some tests failed when the time zone definitions were loaded in MySQL and pytz wasn't installed. This setup isn't supported.
This commit is contained in:
parent
de8aa3a9a9
commit
1fff8daf88
3 changed files with 17 additions and 2 deletions
|
@ -627,7 +627,8 @@ object. If it's ``None``, Django uses the :ref:`current time zone
|
|||
- SQLite: install pytz_ — conversions are actually performed in Python.
|
||||
- PostgreSQL: no requirements (see `Time Zones`_).
|
||||
- Oracle: no requirements (see `Choosing a Time Zone File`_).
|
||||
- MySQL: load the time zone tables with `mysql_tzinfo_to_sql`_.
|
||||
- MySQL: install pytz_ and load the time zone tables with
|
||||
`mysql_tzinfo_to_sql`_.
|
||||
|
||||
.. _pytz: http://pytz.sourceforge.net/
|
||||
.. _Time Zones: http://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-TIMEZONES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue