Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12059 closed (fixed)

datetime to time conversion incorrect

Reported by: Waldemar Kornewald Owned by: Jannis Leidel
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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)

12059.diff (1.4 KB) - added by Simon Zimmermann 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by Simon Zimmermann

Attachment: 12059.diff added

comment:1 Changed 7 years ago by Simon Zimmermann

Has patch: set
Version: 1.1SVN

comment:2 Changed 7 years ago by Jacob

Owner: Jacob deleted

comment:3 Changed 7 years ago by Jannis Leidel

Owner: set to Jannis Leidel
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:4 Changed 7 years ago by Jannis Leidel

Resolution: fixed
Status: assignedclosed

(In [12137]) Fixed #12059 - Let TimeField.to_python correctly return a datetime.time object when having a datetime object.

comment:5 Changed 7 years ago by Jannis Leidel

(In [12237]) [1.1.X] Fixed #12059 - Let TimeField.to_python correctly return a datetime.time object when having a datetime object.

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