Corrected reversed variable.

This commit is contained in:
Bradley M. Kuhn 2013-12-29 16:26:48 -05:00
parent f8d27ac1fd
commit 27aa3c975f

View file

@ -133,8 +133,8 @@ if (not defined $data{current}{observation_time}) {
}
}
if (not defined $data{current}{observation_time_rfc822}) {
$data{current}{observation_time} = $data{current}{observation_time_rfc822};
$data{current}{observation_time} =~ s/^\s*(?:Observation\s*of\s*:?|Last\s*Updated\s*(?:on)?)\s*//;
$data{current}{observation_time_rfc822} = $data{current}{observation_time};
$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) =
($data{current}{temp}, $data{current}{heat_index},