Skip to content

Commit

Permalink
Revert "fix OARec time interval format"
Browse files Browse the repository at this point in the history
This reverts commit b7808e4.
  • Loading branch information
tomkralidis committed Apr 2, 2024
1 parent b7808e4 commit 91c70cf
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 = 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
Expand Down

0 comments on commit 91c70cf

Please sign in to comment.