pass gandi domain end date as date
This commit is contained in:
parent
d813bff812
commit
748ec3a1bc
|
@ -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",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue