#12059 closed (fixed)
datetime to time conversion incorrect
Reported by: | Waldemar Kornewald | Owned by: | Jannis Leidel |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In TimeField.to_python
(db.models.fields: init.py line 838) a datetime is converted to
time via value.time, but it should be value.time() (parenthesis were
missing). Could you please fix that? Thanks!
Attachments (1)
Change History (6)
by , 15 years ago
Attachment: | 12059.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|---|
Version: | 1.1 → SVN |
comment:2 by , 15 years ago
Owner: | removed |
---|
comment:3 by , 15 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
(In [12137]) Fixed #12059 - Let TimeField.to_python correctly return a datetime.time object when having a datetime object.