mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-05-03 03:51:57 +02:00
Merge pull request #154 from netz39/151-kalendertermine-im-feed-werden-falsch-angezeigt
fix(events_to_ics): fix VTIMEZONE
This commit is contained in:
commit
e22b025e9a
1 changed files with 15 additions and 0 deletions
|
@ -14,8 +14,23 @@ module Jekyll
|
|||
default_duration = Rational(4, 24)
|
||||
cal = Icalendar::Calendar.new
|
||||
|
||||
# Define Europe/Berlin timezone with standard rules (incl. DST)
|
||||
cal.timezone do |t|
|
||||
t.tzid = "Europe/Berlin"
|
||||
# Daylight Saving Time (DST) adjustments (if applicable)
|
||||
t.daylight do |d|
|
||||
d.tzoffsetfrom = "-0100"
|
||||
d.tzoffsetto = "-0200"
|
||||
d.dtstart = "19700329T020000"
|
||||
d.tzname = "CEST"
|
||||
end
|
||||
# Standard Time definition
|
||||
t.standard do |s|
|
||||
s.tzoffsetfrom = "-0200"
|
||||
s.tzoffsetto = "-0100"
|
||||
s.dtstart = "19701025T030000"
|
||||
s.tzname = "CET"
|
||||
end
|
||||
end
|
||||
|
||||
events.each do |event|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue