2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

calendar event is now started if t < endtime and ended if t>= endtime (before it was <= and > respectively)

git-svn-id: https://svn.fhem.de/fhem/trunk@2179 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-11-24 12:42:24 +00:00
parent 9e77743940
commit 1ce53cc9ae

View File

@ -451,13 +451,13 @@ sub isAlarmed {
sub isStarted {
my ($self,$t) = @_;
return 0 if($self->isDeleted());
return $self->{start}<= $t && $t<= $self->{end} ? 1 : 0;
return $self->{start}<= $t && $t< $self->{end} ? 1 : 0;
}
sub isEnded {
my ($self,$t) = @_;
return 0 if($self->isDeleted());
return $self->{end}< $t ? 1 : 0;
return $self->{end}<= $t ? 1 : 0;
}
sub nextTime {