Forum Topic - FRCAPI Event Time Zone: (9 Items)
   
FRCAPI Event Time Zone  
Not sure if anyone else has discussed this earlier, or if I am missing something here, but it would be nice if Event 
Listings included the time zone of each event.  This would allow the schedule times to be adjusted to local time.  
Alternatively, it would be easier just to list the times as local times.
Re: FRCAPI Event Time Zone  
> Not sure if anyone else has discussed this earlier, or if I am missing 
> something here, but it would be nice if Event Listings included the time zone 
> of each event.  This would allow the schedule times to be adjusted to local 
> time.  Alternatively, it would be easier just to list the times as local times
> .

Oops, just discovered something in Trackers.  I'd vote for options 2 or 3.
Re: FRCAPI Event Time Zone  
The approach we have taken is to store the data locally in UTC, and then at display time, we just convert to the 
timezone of the device.  It works well, and you don't have to worry about where the user might be located, it always 
shows the proper time for their current timezone.
Re: FRCAPI Event Time Zone  
Thanks for the suggestion.  Unfortunately, it does not work for me since the client may be dumb and not know its time 
zone.  The following map is approximate but may be useful to other...  Adjust for DST.

stateTimeZone = {'ME': 5, 'VT': 5, 'NH': 5, 'NJ': 5, 'NY': 5, 'MA': 5, 'CT': 5, 'RI': 5, 
                         'DE': 5, 'PA': 5, 'MI': 5, 'IN': 5, 'OH': 5, 'DC': 5, 'WV': 5, 'VA': 5, 
                         'KY': 5, 'MD': 5, 'SC': 5, 'NC': 5, 'FL': 5, 'GA': 5, 
                         'AL': 6, 'AR': 6, 'IA': 6, 'IL': 6, 'KS': 6, 'LA': 6, 'MN': 6, 'MO': 6, 
                         'MS': 6, 'ND': 6, 'NE': 6, 'OK': 6, 'SD': 6, 'TN': 6, 'TX': 6, 'WI': 6, 
                         'AZ': 7, 'CO': 7, 'ID': 7, 'MT': 7, 'NM': 7, 'TX': 7, 'UT': 7, 'WY': 7, 
                         'CA': 8, 'NV': 8, 'OR': 8, 'WA': 8, 
                         'AK': 9, 
                         'HI': 10, 
                         'ON': 5, 'QC': 5, 'AB': 7, 
                         'DIF': 6,
                         'TA': -2,
                         'NSW': -11}
Re: FRCAPI Event Time Zone  
It looks like all events are now being returned in local time instead of UTC, even though the API documentation says UTC
.

I saw a bug logged regarding ONTO2, but it appears to be happening at all other events that have matches posted now too.
Re: FRCAPI Event Time Zone  
Please see the note on the home page.

Re: FRCAPI Event Time Zone  
Alex,

Can you bump the version, so we can parse times from last week and future weeks differently? Let v1.0 have UTC times, 
and v1.1 have local time?
Re: FRCAPI Event Time Zone  
Hi,
Unfortunately, it isn't trivial for us to change the timing, since it is heavily tied between the way we display on the 
web and the way we serve things up in the API. The data, including last week, has been served up in local time, but 
there was a mistake and the only documentation updated was the beta/prelim version. Times are a tricky thing, and 
something we will certainly be investigating more for in future version (maybe providing both versions, etc), but not at
 this time.
Re: FRCAPI Event Time Zone  
"The data, including last week, has been served up in local time, but 
there was a mistake and the only documentation updated was the beta/prelim version."

I'm pretty sure the match schedules that were posted before the API went down last week had the times as UTC.