From 33eb53ee914dd4c4b8cf6536de4554cd9ec6fc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Puiggen=C3=A9?= Date: Thu, 9 Nov 2023 13:55:03 +0100 Subject: [PATCH 1/2] Use dtime.to_DT instead of api.to_date --- src/senaite/patient/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/senaite/patient/api.py b/src/senaite/patient/api.py index 3dfe91c7..32e26f7e 100644 --- a/src/senaite/patient/api.py +++ b/src/senaite/patient/api.py @@ -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 From 77400f0d7b2d6b86cc67258ba32e8b0a970a49fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Puiggen=C3=A9?= Date: Thu, 9 Nov 2023 13:59:05 +0100 Subject: [PATCH 2/2] Changelog --- docs/changelog.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index e6468ac3..0f4ba55a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,7 @@ Changelog 1.4.0 (unreleased) ------------------ +- #96 Use dtime.to_DT instead of api.to_date - #93 Layered listing searchable text adapter - #92 Allow searches by patient in samples listing - #91 Allow only 1 Patient per Report