From 5fe3e4dd2f59840b36ae360a6d3c7c6b53ee1730 Mon Sep 17 00:00:00 2001 From: chris1284 <> Date: Thu, 26 Jul 2018 17:17:50 +0000 Subject: [PATCH] 57_CALVIEW.pm: -fixed timeshort reading git-svn-id: https://svn.fhem.de/fhem/trunk@17031 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/57_CALVIEW.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fhem/FHEM/57_CALVIEW.pm b/fhem/FHEM/57_CALVIEW.pm index 755d9b1e1..69dc8cf81 100644 --- a/fhem/FHEM/57_CALVIEW.pm +++ b/fhem/FHEM/57_CALVIEW.pm @@ -223,8 +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 ){ $termin->{duration} = AttrVal($name,"fulldaytext","ganztägig"); } - elsif (!defined $termin->{duration}){$termin->{duration} = "keine Laufzeit";} + if( $termin->{duration} == 86400 ){ $termin->{duration} = AttrVal($name,"fulldaytext","ganztägig");$timeshort = 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) {