Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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)

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

Download all attachments as: .zip

Change History (6)

by Simon Zimmermann, 15 years ago

Attachment: 12059.diff added

comment:1 by Simon Zimmermann, 15 years ago

Has patch: set
Version: 1.1SVN

comment:2 by Jacob, 15 years ago

Owner: Jacob removed

comment:3 by Jannis Leidel, 15 years ago

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

comment:4 by Jannis Leidel, 15 years ago

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 by Jannis Leidel, 15 years ago

(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