From 57ea2a7ac90c3c815cb5f349e01a7992db37fc7e Mon Sep 17 00:00:00 2001 From: borisneubert Date: Sat, 16 Jan 2021 14:32:53 +0000 Subject: [PATCH] 57_Calendar: correct event selection for limit:when=tomorrow (forum #97810) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23527 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 2 ++ FHEM/57_Calendar.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGED b/CHANGED index 1e6f85d9f..304765b53 100644 --- a/CHANGED +++ b/CHANGED @@ -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 diff --git a/FHEM/57_Calendar.pm b/FHEM/57_Calendar.pm index 9d35545bb..40a7f8d7d 100644 --- a/FHEM/57_Calendar.pm +++ b/FHEM/57_Calendar.pm @@ -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 };