Closed (fixed)
Project:
SPARCS
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
8 Mar 2012 at 23:39 UTC
Updated:
9 Mar 2012 at 15:01 UTC
The code logic is currently like so:
if ($dst) {
// we are in MDT so we use
$utc_noon=19;
}
else {
//we are in MST so we use
$utc_noon=20;
}
This will not work for anyone but those in the mountain time zone.
Since FWI and FBP values are location dependant, logically, these values should be abstracted back to use the hour as dictated by :
This requires a new config variable in the admin panel to set the hour on which to calculate, so that stations from other timezones can still be used in local time for border stations etc.
My Thanks to Dustin Oikle (Nova Scotia) for helping me wrap my head around this issue!
Comments
Comment #1
spydmobile commentedok, here is my solution as of Commit 1aeed17 on 7.x-1.x:
THis needs testing and review......
Comment #2
spydmobile commentedthere was a typo, and fixed it and committed again o.O
Comment #3
spydmobile commentedfixed and confirmed as of Commit 792a989 on 7.x-1.x
Comment #4
spydmobile commentedActually this was not fixed, that was another bug, but itis fixed now.
here is the new code:
Comment #5
spydmobile commentedtested, fixed as of Commit ae34c54 on 7.x-1.x
Comment #5.0
spydmobile commentedspelling and grammar