Corrected reversed variable.
This commit is contained in:
parent
f8d27ac1fd
commit
27aa3c975f
1 changed files with 2 additions and 2 deletions
|
@ -133,8 +133,8 @@ if (not defined $data{current}{observation_time}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (not defined $data{current}{observation_time_rfc822}) {
|
if (not defined $data{current}{observation_time_rfc822}) {
|
||||||
$data{current}{observation_time} = $data{current}{observation_time_rfc822};
|
$data{current}{observation_time_rfc822} = $data{current}{observation_time};
|
||||||
$data{current}{observation_time} =~ s/^\s*(?:Observation\s*of\s*:?|Last\s*Updated\s*(?:on)?)\s*//;
|
$data{current}{observation_time_rfc822} =~ s/^\s*(?:Observation\s*of\s*:?|Last\s*Updated\s*(?:on)?)\s*//;
|
||||||
}
|
}
|
||||||
my($temp, $feelsLike, $humidity, $windSpeed, $windGust, $icon, $datetime) =
|
my($temp, $feelsLike, $humidity, $windSpeed, $windGust, $icon, $datetime) =
|
||||||
($data{current}{temp}, $data{current}{heat_index},
|
($data{current}{temp}, $data{current}{heat_index},
|
||||||
|
|
Loading…
Add table
Reference in a new issue