pass gandi domain end date as date

This commit is contained in:
Edward Betts 2024-03-30 19:31:48 +00:00
parent d813bff812
commit 748ec3a1bc

View file

@ -2,6 +2,7 @@
import os
from .types import Event
from datetime import datetime
import json
@ -18,7 +19,7 @@ def get_events(data_dir: str) -> list[Event]:
return [
Event(
date=item["dates"]["registry_ends_at"],
date=datetime.fromisoformat(item["dates"]["registry_ends_at"]).date(),
name="domain",
title=item["fqdn"] + " renewal",
)