Skip to content

Commit

Permalink
fixes issue #58, restructuring.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Sep 3, 2012
1 parent 42c2f44 commit 56c0a3e
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions src/icalendar/tests/issues.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
======
ISSUES
======

Test for reported issues


Basic Imports
=============

Issue 64
========
>>> from icalendar import Event
>>> from datetime import datetime
>>> import pytz

Event.to_ical() fails for unicode strings
Issue #64 - Event.to_ical() fails for unicode strings
=====================================================

https://github.com/collective/icalendar/issues/64
by Prillan
Expand All @@ -14,9 +22,6 @@ This is pretty self explanatory

Non-unicode characters

>>> from icalendar import Event
>>> from datetime import datetime

>>> event = Event()
>>> event.add("dtstart", datetime(2012,9,3,0,0,0))
>>> event.add("summary", u"abcdef")
Expand All @@ -40,3 +45,21 @@ Unicode characters
ValueError: Property: 'SUMMARY' Wrong values "Parameters({})" or "vText(u'\xe5\xe4\xf6')"


Issue #58 - TZID on UTC DATE-TIMEs
==================================

https://github.com/collective/icalendar/issues/58
By gregbaker

According to RFC 2445: "The TZID property parameter MUST NOT be applied to
DATE-TIME or TIME properties whose time values are specified in UTC."

But the module will produce them in cases like:

>>> e = Event()
>>> e.add('dtstart', pytz.utc.localize(datetime(2012,7,16,0,0,0)))
>>> print e.to_ical()
BEGIN:VEVENT
DTSTART;VALUE=DATE-TIME:20120716T000000Z
END:VEVENT

0 comments on commit 56c0a3e

Please sign in to comment.