| 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 (4243 days ago) |
| Due | 03/28/2014 (4242 days ago) |
| Updated | 03/28/2014 (4242 days ago) |
| Assigned | 03/27/2014 (4243 days ago) |
| Resolved | 03/28/2014 (4242 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | Yes |
State ⇒ Resolved
Thanks!
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
Version ⇒ Git master
Priority ⇒ 1. Low
Assigned to Michael Rubinsky
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
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.