#29384: Change the SQL while filtering by month or day with MySQL when USE_TZ is
True
-------------------------------------+-------------------------------------
     Reporter:  Fossen               |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  2.0
  (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
-------------------------------------+-------------------------------------

Comment (by Aymeric Augustin):

 Please review the discussions around #2626 and
 [https://groups.google.com/forum/#!topic/django-developers/zwQju7hbG78
 this discussion] for more information about why Django stores datetimes in
 UTC in the database when USE_TZ = True.

 Among databases supported by Django, MySQL isn't the most convenient,
 complete or correct. That's unfortunate but not a sufficient reason to
 challenge the design. If you want to change it, please make a proposal on
 django-developers with a similar level of detail to the discussion I
 linked to.

 PS - based on what you wrote, it seems to me that you could set USE_TZ =
 False and be happy with the result.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29384#comment:4>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.78b3e35b53d0103d6fe21da3afd8b240%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to