Opened 2 years ago

Closed 2 years ago

#33851 closed Bug (needsinfo)

Bug: timestamp__day=day lookup gives incorrect results

Reported by: Om Dahale Owned by: nobody
Component: Database layer (models, ORM) Version: 2.2
Severity: Normal Keywords: datetime day lookup
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://imgur.com/a/4hzcvLz

After experimenting more I found out datetime day lookup gives incorrect results.
the queryset should not be empty, right?

Attachments (1)

image.jpg (50.3 KB ) - added by Om Dahale 2 years ago.

Download all attachments as: .zip

Change History (2)

by Om Dahale, 2 years ago

Attachment: image.jpg added

comment:1 by Tim Graham, 2 years ago

Resolution: needsinfo
Status: newclosed

Please use text to report the issue rather than an image. More details are probably needed. What database are you using? Can you provide a small sample project that includes a failing test case? Also, please test using the latest release of Django rather than 2.2 which is unsupported. Reopen the ticket when you provide more details. Thanks!

Note: See TracTickets for help on using tickets.
Back to Top