[common] allow general ISO 8601 values for 'date-min' & '-max'

and parse them as UTC times instead of local time
This commit is contained in:
Mike Fährmann
2025-11-09 21:33:11 +01:00
parent 3942e6ddc0
commit 89ece8f900
4 changed files with 91 additions and 8 deletions

View File

@@ -1503,12 +1503,19 @@ extractor.*.date-format
Type
``string``
Default
``"%Y-%m-%dT%H:%M:%S"``
``null``
Description
Format string used to parse ``string`` values of
`date-min` and `date-max`.
See |strptime|_ for a list of formatting directives.
Special Values
``null``
| Parse `date-min` and `date-max` according to
`ISO 8601 <https://en.wikipedia.org/wiki/ISO_8601>`__
| See
`datetime.fromisoformat() <https://docs.python.org/3/library/datetime.html#datetime.datetime.fromisoformat>`__
for details and examples.
Note
Despite its name, this option does **not** control how
``{date}`` metadata fields are formatted.

View File

@@ -681,7 +681,7 @@
"embeds" : true,
"date-min" : 0,
"date-max" : 253402210800,
"date-format" : "%Y-%m-%dT%H:%M:%S",
"date-format" : null,
"id-min" : null,
"id-max" : null,
"limit" : null,