#33075: '__date' returns None in MySQL while it returns date object in Sqlite3
-------------------------------------+-------------------------------------
Reporter: pikicode | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: mysql | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* keywords: => mysql
* resolution: => invalid
* status: new => closed
* component: Uncategorized => Database layer (models, ORM)
Comment:
When `USE_TZ` is `True`, fields are converted to the current time zone
before filtering (see
[https://docs.djangoproject.com/en/3.2/ref/models/querysets/#date __date
docs]). This requires
[https://docs.djangoproject.com/en/3.2/ref/models/querysets/#database-
time-zone-definitions time zone definitions in the database]. Please check
that `mysql_tzinfo_to_sql` is loaded to the time zone tables.
--
Ticket URL: <https://code.djangoproject.com/ticket/33075#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.2abf3da4111fee17525c65d5ff882059%40djangoproject.com.