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

Method now

tests/test_task_scheduler_timezone.py:17–21  ·  view source on GitHub ↗
(cls, tz=None)

Source from the content-addressed store, hash-verified

15class FixedDateTime(datetime):
16 @classmethod
17 def now(cls, tz=None):
18 value = cls(2026, 5, 9, 10, 0, tzinfo=timezone.utc)
19 if tz is None:
20 return value.replace(tzinfo=None)
21 return value.astimezone(tz)
22
23
24def test_scheduled_task_next_run_uses_schedule_timezone(monkeypatch):

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected