From 00eeabfeac70d50a6bb5372b9c5d6e205544cf81 Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Thu, 6 Apr 2023 10:43:06 +0200
Subject: [PATCH] SSDM-12812: Fixed time formatting for None values

---
 .../src/python/pybis/property_reformatter.py                    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py b/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py
index 12bab087874..59739cd644f 100644
--- a/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py
+++ b/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py
@@ -51,6 +51,8 @@ class PropertyReformatter:
         return properties
 
     def _format_timestamp(self, value):
+        if value is None:
+            return value
         if is_of_openbis_supported_date_format(value):
             return value
         timestamp = pd.to_datetime(value)
-- 
GitLab