59_Weather.pm: fixed date parsing for January
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user