summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-005-timezone.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test-005-timezone.py')
-rw-r--r--tests/unit/test-005-timezone.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test-005-timezone.py b/tests/unit/test-005-timezone.py
index 8110e30..fc67eaa 100644
--- a/tests/unit/test-005-timezone.py
+++ b/tests/unit/test-005-timezone.py
@@ -23,12 +23,14 @@ class TestTimezone(unittest.TestCase):
london = Event()
london.set_organizer("john.doe@example.org", "Doe, John")
london.add_attendee("resource-car-vw@example.org", cutype="RESOURCE")
+ london.set_dtstamp(datetime.datetime.now(pytz.timezone("UTC")))
london.set_start(event_start.replace(tzinfo=pytz.timezone("Europe/London")))
london.set_end(event_end.replace(tzinfo=pytz.timezone("Europe/London")))
zurich = Event()
zurich.set_organizer("john.doe@example.org", "Doe, John")
zurich.add_attendee("resource-car-vw@example.org", cutype="RESOURCE")
+ zurich.set_dtstamp(datetime.datetime.now(pytz.timezone("Europe/Zurich")))
zurich.set_start(event_start.replace(tzinfo=pytz.timezone("Europe/Zurich")))
zurich.set_end(event_end.replace(tzinfo=pytz.timezone("Europe/Zurich")))