From 0160afbe6ac378ff7f43d66d3a73e85f5eb5c0a9 Mon Sep 17 00:00:00 2001 From: chris1284 <> Date: Mon, 23 Jul 2018 05:35:40 +0000 Subject: [PATCH] 57_CALVIEW.pm: -fixed duration reading git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17020 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/57_CALVIEW.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/57_CALVIEW.pm b/FHEM/57_CALVIEW.pm index ade12fddc..071234b59 100644 --- a/FHEM/57_CALVIEW.pm +++ b/FHEM/57_CALVIEW.pm @@ -223,7 +223,7 @@ sub CALVIEW_GetUpdate($){ $nextday = sprintf ('%02d', $nextday); Log3 $name , 5, "CALVIEW $name - nextday = $nextday , endday = $endday , startday = $startday , btime ".$termin->{btime}." , etime ".$termin->{etime}.""; #if( $endday eq $nextday && $termin->{btime} eq $termin->{etime} ){ $timeshort = AttrVal($name,"fulldaytext","ganztägig"); } - if( $termin->{duration} == 86400 ){ $timeshort = AttrVal($name,"fulldaytext","ganztägig"); } + if( $termin->{duration} == 86400 ){ $termin->{duration} = AttrVal($name,"fulldaytext","ganztägig"); } else { if(AttrVal($name,"timeshort","0") eq 0) {$timeshort = $termin->{btime}." - ".$termin->{etime}; } elsif(AttrVal($name,"timeshort","0") eq 1) {