dhmd-verstaltungen: fix @dtstart

This commit is contained in:
Astro 2022-07-14 20:33:48 +02:00
parent eebd47a9ff
commit adfe2a4feb
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Event
when /^(\d+)$/
@dtstart = Time::local year, month, day, $1.to_i, 0, 0
when /^(\d+):(\d+)$/
@dtstart = Time::local year, month, day, $1.to_i, $2.to_i, 0
@dtstart = Time::local year, month, day, $2.to_i, $1.to_i, 0
when /^(\d+)\s*-\s*(\d+)/
@dtstart = Time::local year, month, day, $1.to_i, 0, 0
@dtend = Time::local year, month, day, $2.to_i, 0, 0