2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 12:46:03 +00:00

57_Calendar: correct event selection for limit:when=tomorrow (forum #97810)

git-svn-id: https://svn.fhem.de/fhem/trunk@23527 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2021-01-16 14:32:53 +00:00
parent 00c67bac1e
commit 9ef1e7e1e8
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 57_Calendar: correct event selection for
limit:when=tomorrow (forum #97810)
- feature: 36_ShellyModule: new module to interwork with 36_Shelly
- bugfix: 98_WeekdayTimer: fix timer admin
- change: 10_WS980: fix num vs. string

View File

@ -2056,7 +2056,7 @@ sub Calendar_Get($@) {
$from *= -1;
} else {
$from = DAYSECONDS - Calendar_GetSecondsFromMidnight();
$to = $from + DAYSECONDS;
$to = $from + DAYSECONDS - 1;
}
push @filters, { ref => \&filter_endafter, param => $t+$from };
push @filters, { ref => \&filter_startbefore, param => $t+$to };