From 79cfb9f3bfbc333af2a46004ede823581196f89c Mon Sep 17 00:00:00 2001 From: speckij Date: Mon, 18 Nov 2024 16:47:06 +0100 Subject: [PATCH] fix encoding of time property needs to be an object as of https://docs.ogc.org/DRAFTS/20-004.html#_overview_4 --- pygeoapi/provider/csw_facade_dcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/provider/csw_facade_dcat.py b/pygeoapi/provider/csw_facade_dcat.py index 446ed9c42..514272fc1 100644 --- a/pygeoapi/provider/csw_facade_dcat.py +++ b/pygeoapi/provider/csw_facade_dcat.py @@ -266,7 +266,7 @@ def _owslibrecord2record(self, record): 'id': record.identifier, 'type': 'Feature', 'geometry': None, - 'time': record.date or None, + 'time': {"timestamp": record.date} if record.date is not None else None, 'properties': {}, 'links': [ self._gen_getrecordbyid_link(record.identifier),