Opened 6 years ago

Closed 6 years ago

Last modified 6 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 Adam Vandenberg 6 years ago.
Patch to docs to mention MySQL timezone limitation.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by Gabriel Hurley

Triage Stage: UnreviewedAccepted

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

Changed 6 years ago by Adam Vandenberg

Attachment: mysql-timezone.diff added

Patch to docs to mention MySQL timezone limitation.

comment:2 Changed 6 years ago by Adam Vandenberg

Has patch: set

comment:3 Changed 6 years ago by Tim Graham

Resolution: fixed
Status: newclosed

(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 6 years ago by Tim Graham

(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