diff --git a/pygeoapi/util.py b/pygeoapi/util.py index 50d49f155..c7301de13 100644 --- a/pygeoapi/util.py +++ b/pygeoapi/util.py @@ -132,10 +132,12 @@ def dategetter(date_property: str, collection: dict, raw: bool = False) -> str: if value is None: return None + value2 = value.isoformat() + if raw: return value else: - return value.isoformat() + return value2 def get_typed_value(value: str) -> Union[bool, float, int, str]: