kopia lustrzana https://github.com/collective/icalendar
TZOFFSET{FROM,TO}:0000 -> +0000
Google Calendar and http://severinghaus.org/projects/icv/ complain about a TZOFFSET of 0000 but accept +0000. Signed-off-by: Rok Garbas <rok@garbas.si>pull/6/head
rodzic
f0117b7898
commit
fe4e4ef803
|
@ -1269,7 +1269,7 @@ class vUTCOffset:
|
|||
|
||||
>>> u = vUTCOffset(timedelta())
|
||||
>>> u.ical()
|
||||
'0000'
|
||||
'+0000'
|
||||
|
||||
>>> u = vUTCOffset(timedelta(minutes=-30))
|
||||
>>> u.ical()
|
||||
|
@ -1322,7 +1322,7 @@ class vUTCOffset:
|
|||
seconds_in_minutes = td.seconds // 60
|
||||
total_minutes = day_in_minutes + seconds_in_minutes
|
||||
if total_minutes == 0:
|
||||
sign = '%s'
|
||||
sign = '+%s' # Google Calendar rejects '0000' but accepts '+0000'
|
||||
elif total_minutes < 0:
|
||||
sign = '-%s'
|
||||
else:
|
||||
|
|
Ładowanie…
Reference in New Issue