mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
added support for rule BYMONTH (single months only)
git-svn-id: https://svn.fhem.de/fhem/trunk@2311 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5ec3229ede
commit
6bee2245d7
@ -367,7 +367,7 @@ sub fromVEvent {
|
||||
my @rrparts= split(";", $rrule);
|
||||
my %r= map { split("=", $_); } @rrparts;
|
||||
|
||||
my @keywords= qw(FREQ INTERVAL UNTIL COUNT BYMONTHDAY BYDAY);
|
||||
my @keywords= qw(FREQ INTERVAL UNTIL COUNT BYMONTHDAY BYDAY BYMONTH);
|
||||
foreach my $k (keys %r) {
|
||||
if(not($k ~~ @keywords)) {
|
||||
main::Log 2, "Calendar: RRULE $rrule is not supported";
|
||||
@ -381,6 +381,7 @@ sub fromVEvent {
|
||||
$self->{count} = $r{"COUNT"} if(exists($r{"COUNT"}));
|
||||
$self->{bymonthday} = $r{"BYMONTHDAY"} if(exists($r{"BYMONTHDAY"})); # stored but ignored
|
||||
$self->{byday} = $r{"BYDAY"} if(exists($r{"BYDAY"})); # stored but ignored
|
||||
$self->{bymonth} = $r{"BYMONTH"} if(exists($r{"BYMONTH"})); # stored but ignored
|
||||
|
||||
# advanceToNextOccurance until we are in the future
|
||||
my $t = time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user