[Tickets #13083] WWO weather local time incorrect (UTC)

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Mar 27 19:39:34 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/13083
------------------------------------------------------------------------------
  Ticket             | 13083
  Created By         | maciej.uhlig at us.edu.pl
  Summary            | WWO weather local time incorrect (UTC)
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_5_1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


maciej.uhlig at us.edu.pl (2014-03-27 19:39) wrote:

Looks like WWO changed their API. Local time is displayed on Horde  
portal weather block as UTC. You need to make two code changes to get  
local time in correct timezone:

.\framework\Service_Weather\lib\Horde\Service\Weather

line 184 is:

             'localObsTime' => 'yes'));

line 184 should be:

             'extra' => 'localObsTime'));

.\framework\Service_Weather\lib\Horde\Service\Weather\Current\Wwo.php

line 51 is:

             return new Horde_Date($this->_properties->observation_time);

line 51 should be:

             return new Horde_Date($this->_properties->localObsDateTime);

That's all.





More information about the bugs mailing list