#31948: TruncDate Unexpected Behavior
-------------------------------------+-------------------------------------
Reporter: Joe Jackson | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: TruncDate | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Joe Jackson):
Replying to [comment:1 Serhii Romanov]:
> Please check https://code.djangoproject.com/ticket/31640
> Is it related to your issue?
It is related, but not exactly my issue. That patch updates the TruncBase
as_sql method, and world work. But the TruncDate and TruncTime classes
override as_sql and don't call super. So the timezone passed in is
ignored.
I can attempt to submit a patch for this issue. I'll just need to take a
minute and read up on how to properly do that.
--
Ticket URL: <https://code.djangoproject.com/ticket/31948#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/070.2593bb3ad1233a1cb3335f2e62e88dda%40djangoproject.com.