X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCalendarEvent.pm;fp=src%2FPVE%2FCalendarEvent.pm;h=c30686d99241b68f152412678f3917f48428ca71;hp=b27e9684e23a067b0602f2473336240425928c44;hb=e2c29de7756a1d982be0b3758ce95aac2c4d88d4;hpb=a5ffa49fda3a66316cc0b026a18eb64cf5093c25 diff --git a/src/PVE/CalendarEvent.pm b/src/PVE/CalendarEvent.pm index b27e968..c30686d 100644 --- a/src/PVE/CalendarEvent.pm +++ b/src/PVE/CalendarEvent.pm @@ -128,8 +128,12 @@ sub parse_calendar_event { if ($time_spec =~ m/^($chars+):($chars+)$/) { my ($p1, $p2) = ($1, $2); - $parse_single_timespec->($p1, 24, \$matchall_hours, $hours_hash); - $parse_single_timespec->($p2, 60, \$matchall_minutes, $minutes_hash); + foreach my $p (split(',', $p1)) { + $parse_single_timespec->($p, 24, \$matchall_hours, $hours_hash); + } + foreach my $p (split(',', $p2)) { + $parse_single_timespec->($p, 60, \$matchall_minutes, $minutes_hash); + } } elsif ($time_spec =~ m/^($chars)+$/) { # minutes only $matchall_hours = 1; foreach my $p (split(',', $time_spec)) {