Skip to content

Commit

Permalink
Merge pull request #96 from senaite/use-dtime-to_DT
Browse files Browse the repository at this point in the history
Use dtime.to_DT instead of api.to_date
  • Loading branch information
ramonski authored Nov 19, 2023
2 parents ed0cbf9 + 5d29d1e commit 599f186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
1.4.0 (unreleased)
------------------

- #96 Use dtime.to_DT instead of api.to_date
- #99 Do not include default races and ethnicities in locales
- #97 Fix birth date is not displayed in patients listing
- #93 Layered listing searchable text adapter
Expand Down
2 changes: 1 addition & 1 deletion src/senaite/patient/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def to_datetime(date_value, default=None, tzinfo=None):
return date_value

# Get the DateTime
date_value = api.to_date(date_value, default=None)
date_value = dtime.to_DT(date_value)
if not date_value:
if default is None:
return None
Expand Down

0 comments on commit 599f186

Please sign in to comment.