summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-005-timezone.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-12-28 14:29:49 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-12-28 14:29:49 +0100
commit600de3739adbebb347bd85da71dc279b7b24ca32 (patch)
tree8003aadf1571639269ba08111cbbe9ad7ecfd99d /tests/unit/test-005-timezone.py
parent75e39e00b95965da624c01dd62a363d3931cb010 (diff)
downloadpykolab-600de3739adbebb347bd85da71dc279b7b24ca32.tar.gz
Ensure the dtstamp is written out with a consistent timestamp parameter
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")))