2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

98_weekprofile: fix time calculation for HM

git-svn-id: https://svn.fhem.de/fhem/trunk@20535 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2019-11-18 19:13:02 +00:00
parent 306d1aac31
commit 0e45f59479
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- bugfix: 98_weekprofile: time calculation for HM
- bugfix: 49_SSCam: FHEM crash when sending data by telegramBot Forum:#105486 - bugfix: 49_SSCam: FHEM crash when sending data by telegramBot Forum:#105486
- bugfix: 98_WeekTimer: fixed deletion of delayed timers (#104272) - bugfix: 98_WeekTimer: fixed deletion of delayed timers (#104272)
- bugfix: 73_AutoShuttersControl: fix brightness morning drive in with - bugfix: 73_AutoShuttersControl: fix brightness morning drive in with

View File

@ -74,8 +74,8 @@ sub weekprofile_minutesToTime($)
{ {
my ($minutes) = @_; my ($minutes) = @_;
my $hours = $minutes / 60.0; my $hours =($minutes - $minutes % 60)/60;
$minutes = $minutes - $hours * 60.0; $minutes = $minutes - $hours * 60;
if (length($hours) eq 1){ if (length($hours) eq 1){
$hours = "0$hours"; $hours = "0$hours";