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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user