2
0
Fork 0

Fix datetime formatting for sipgate API

This commit is contained in:
Luca 2023-05-07 02:41:38 +02:00
parent 2f39705d9a
commit 3bccd25028
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ def list_incoming_sms(from_dt=None):
if from_dt is not None: if from_dt is not None:
params["from"] = ( params["from"] = (
from_dt.astimezone(timezone.utc).isoformat(timespec="seconds") + "Z" from_dt.astimezone(timezone.utc)
.isoformat(timespec="seconds")
.replace("+00:00", "Z")
) )
items = [] items = []