2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-26 10:15:48 +00:00

98_DOIF.pm: %V instead of %W for $week

git-svn-id: https://svn.fhem.de/fhem/trunk@22428 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2020-07-18 20:32:08 +00:00
parent 3960f4c93e
commit b81e3526c6

View File

@ -2088,7 +2088,7 @@ sub DOIF_CheckCond($$) {
my ($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$isdst) = localtime($seconds);
$month++;
$year+=1900;
my $week=strftime ('%W', localtime($seconds));
my $week=strftime ('%V', localtime($seconds));
my $hms = sprintf("%02d:%02d:%02d", $hour, $min, $sec);
my $hm = sprintf("%02d:%02d", $hour, $min);
my $ymd = sprintf("%02d-%02d-%02d", $year, $month,$mday);