mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
59_Weather.pm: fixed date parsing for January
git-svn-id: https://svn.fhem.de/fhem/trunk@10403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6096eaa197
commit
6334a346a6
@ -176,7 +176,7 @@ sub Weather_ParseDateTime($) {
|
||||
# 12 AM= 0, 12 PM= 12
|
||||
$h+=12 if($h==12); if($p eq "pm") { $h= ($h+12) % 24 } else { $h%= 12 };
|
||||
my $m= $monthindex{$mon};
|
||||
return undef unless $m;
|
||||
return undef unless defined($m);
|
||||
#main::Debug "###### $value -> $wd $d $m $y $h:$n $tz";
|
||||
# $mday= 1..
|
||||
# $month= 0..11
|
||||
|
Loading…
x
Reference in New Issue
Block a user