Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#14320 closed (fixed)

MySQL documentation needs to note lack of support for timezone info...

Reported by: RantyDave Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords: MySQL datetime DateTimeField
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The current (5.1.50) version of MySQL has no support for timezone information in date fields. Python does and an attempt to write a models.DateTimeField that contains timezone information fails and throws a ValueError('MySQL backend does not support timezone-aware datetimes.',).

All I'm suggesting is that the documentation at http://docs.djangoproject.com/en/1.2/ref/databases/#notes-on-specific-fields makes note of this.

Attachments (1)

mysql-timezone.diff (670 bytes) - added by adamv 5 years ago.
Patch to docs to mention MySQL timezone limitation.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by gabrielhurley

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Seems reasonable. This probably should've been added way back when #5304 was closed...

Changed 5 years ago by adamv

Patch to docs to mention MySQL timezone limitation.

comment:2 Changed 5 years ago by adamv

  • Has patch set

comment:3 Changed 5 years ago by timo

  • Resolution set to fixed
  • Status changed from new to closed

(In [15078]) Fixed #14320 - Add a note about lack of timezone support in MySQL. Thanks RauntyDave for the suggestion, adamv for the patch.

comment:4 Changed 5 years ago by timo

(In [15079]) [1.2.X] Fixed #14320 - Add a note about lack of timezone support in MySQL. Thanks RauntyDave for the suggestion, adamv for the patch.

Backport of r15078 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top