Add action task

This commit is contained in:
2024-08-19 12:05:46 +02:00
parent 298faa6523
commit 94ba832932
2 changed files with 23 additions and 4 deletions

View File

@@ -75,5 +75,6 @@ class TickTick:
requests.post(ticktick_task_creation_url, headers=header, json=asdict(task), timeout=10)
return {"title": task.title}
def datetime_to_ticktick_format(self, datetime: datetime) -> str:
@staticmethod
def datetime_to_ticktick_format(datetime: datetime) -> str:
return datetime.strftime("%Y-%m-%dT%H:%M:%S") + "+0000"