[version_table] Improve date parsing (#527)

So far the script only allowed datetimes. Now full/partial dates are allowed too.
This commit is contained in:
Marc Wrobel
2025-11-08 13:18:14 +01:00
committed by GitHub
parent 03905bcf79
commit 1fb86114be
3 changed files with 13 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ with ProductData(config.product) as product_data:
continue
version_name = config.render(version_match)
version_date = dates.parse_datetime(cells[version_date_index])
version_date = dates.parse__datetime_or_date_or_month_year_date(cells[version_date_index])
product_data.declare_version(version_name, version_date)
except ValueError as e: