Opened 14 years ago

Closed 13 years ago

Last modified 13 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: no UI/UX: no

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 13 years ago.
Patch to docs to mention MySQL timezone limitation.

Download all attachments as: .zip

Change History (5)

comment:1 by Gabriel Hurley, 14 years ago

Triage Stage: UnreviewedAccepted

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

by Adam Vandenberg, 13 years ago

Attachment: mysql-timezone.diff added

Patch to docs to mention MySQL timezone limitation.

comment:2 by Adam Vandenberg, 13 years ago

Has patch: set

comment:3 by Tim Graham, 13 years ago

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 by Tim Graham, 13 years ago

(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