Skip to content

Commit

Permalink
fix OARec time interval format
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Apr 2, 2024
1 parent a2b8cb2 commit b7808e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygeometa/schemas/ogcapi_records/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ def write(self, mcf: dict, stringify: str = True) -> Union[dict, str]:
if begin in ['now', 'None', None]:
begin = '..'
else:
begin = str(begin)
begin = begin.strftime('%Y-%m-%dT%H:%M:%SZ')

if end in ['now', 'None', None]:
end = '..'
else:
end = str(end)
end = end.strftime('%Y-%m-%dT%H:%M:%SZ')

if [begin, end] == [None, None]:
record['time'] = None
Expand Down

0 comments on commit b7808e4

Please sign in to comment.