6.0.0-beta1
7/15/25

[#13083] WWO weather local time incorrect (UTC)
Summary WWO weather local time incorrect (UTC)
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester maciej.uhlig (at) us (dot) edu (dot) pl
Created 03/27/2014 (4128 days ago)
Due 03/28/2014 (4127 days ago)
Updated 03/28/2014 (4127 days ago)
Assigned 03/27/2014 (4128 days ago)
Resolved 03/28/2014 (4127 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
03/28/2014 04:58:39 PM Michael Rubinsky Comment #3
State ⇒ Resolved
Reply to this comment
Fixed, along with some other tweaks/improvements.

Thanks!
03/28/2014 04:03:56 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 36e6f14c1d0934bd6a35b2d1381f67f93f2d0caf
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Mar 28 11:29:38 2014 -0400

     Request local datetime from wwo as well.

     Bug: 13083 (maciej.uhlig@us.edu.pl)

  .../lib/Horde/Service/Weather/Current/Wwo.php      |    6 +++++-
  .../lib/Horde/Service/Weather/Wwo.php              |    2 +-
  2 files changed, 6 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/36e6f14c1d0934bd6a35b2d1381f67f93f2d0caf
03/27/2014 08:26:43 PM Michael Rubinsky State ⇒ Assigned
Version ⇒ Git master
Priority ⇒ 1. Low
Assigned to Michael Rubinsky
 
03/27/2014 07:39:34 PM maciej (dot) uhlig (at) us (dot) edu (dot) pl Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ WWO weather local time incorrect (UTC)
Due ⇒ 03/28/2014
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Reply to this comment
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.

Saved Queries