MCPcopy
hub / github.com/agent0ai/agent-zero / _schedule_timezone

Function _schedule_timezone

tools/scheduler.py:54–60  ·  view source on GitHub ↗
(kwargs: dict)

Source from the content-addressed store, hash-verified

52
53
54def _schedule_timezone(kwargs: dict) -> str | None:
55 schedule = kwargs.get("schedule")
56 if isinstance(schedule, dict) and schedule.get("timezone"):
57 return _normalize_timezone(schedule["timezone"])
58 if kwargs.get("timezone"):
59 return _normalize_timezone(kwargs["timezone"])
60 return None
61
62
63def _task_schedule_from_input(schedule: Any, timezone: str | None = None) -> TaskSchedule:

Callers 2

update_taskMethod · 0.85
create_scheduled_taskMethod · 0.85

Calls 2

_normalize_timezoneFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected