diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-12-28 14:29:49 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-12-28 14:29:49 +0100 |
commit | 600de3739adbebb347bd85da71dc279b7b24ca32 (patch) | |
tree | 8003aadf1571639269ba08111cbbe9ad7ecfd99d | |
parent | 75e39e00b95965da624c01dd62a363d3931cb010 (diff) | |
download | pykolab-600de3739adbebb347bd85da71dc279b7b24ca32.tar.gz |
Ensure the dtstamp is written out with a consistent timestamp parameter
-rw-r--r-- | tests/unit/test-005-timezone.py | 2 |
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"))) |