diff --git a/pygeometa/schemas/ogcapi_records/__init__.py b/pygeometa/schemas/ogcapi_records/__init__.py index c9900fb..bbfe57e 100644 --- a/pygeometa/schemas/ogcapi_records/__init__.py +++ b/pygeometa/schemas/ogcapi_records/__init__.py @@ -134,12 +134,12 @@ def write(self, mcf: dict, stringify: str = True) -> Union[dict, str]: if begin in ['now', 'None', None]: begin = '..' else: - begin = begin.strftime('%Y-%m-%dT%H:%M:%SZ') + begin = str(begin) if end in ['now', 'None', None]: end = '..' else: - end = end.strftime('%Y-%m-%dT%H:%M:%SZ') + end = str(end) if [begin, end] == [None, None]: record['time'] = None