kopia lustrzana https://github.com/collective/icalendar
Merge branch 'master' of github.com:collective/icalendar
commit
5841772724
|
@ -309,7 +309,7 @@ class vDatetime:
|
||||||
|
|
||||||
def ical(self):
|
def ical(self):
|
||||||
if self.dt.tzinfo:
|
if self.dt.tzinfo:
|
||||||
utc_time = self.dt - self.dt.tzinfo.utcoffset(datetime.now())
|
utc_time = self.dt - self.dt.tzinfo.utcoffset(self.dt)
|
||||||
return utc_time.strftime("%Y%m%dT%H%M%SZ")
|
return utc_time.strftime("%Y%m%dT%H%M%SZ")
|
||||||
return self.dt.strftime("%Y%m%dT%H%M%S")
|
return self.dt.strftime("%Y%m%dT%H%M%S")
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue