57_Calendar: fix for today filter

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

View File

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