mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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:
parent
306d1aac31
commit
0e45f59479
@ -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
|
||||||
|
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user