57_Calendar: fix for today filter

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20528 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2019-11-17 16:07:12 +00:00
parent cd164a3731
commit a5ea1aeb41

View File

@ -2034,7 +2034,7 @@ sub Calendar_Get($@) {
my ($from,$to); my ($from,$to);
if (lc($1) eq 'today') { if (lc($1) eq 'today') {
$from = Calendar_GetSecondsFromMidnight(); $from = Calendar_GetSecondsFromMidnight();
$to = DAYSECONDS - $from; $to = DAYSECONDS - $from - 1;
$from *= -1; $from *= -1;
} else { } else {
$from = DAYSECONDS - Calendar_GetSecondsFromMidnight(); $from = DAYSECONDS - Calendar_GetSecondsFromMidnight();