umts / BusInfoBoard

A place to view bus arrival information from Avail's JSON feed
Apache License 2.0
16 stars 3 forks source link

Show times local to avail endpoint #63

Closed dfaulken closed 7 years ago

dfaulken commented 7 years ago

Addresses #62.

https://momentjs.com/docs/#/parsing/parse-zone/

It is now 9:10 pm local time. I confirmed that this works by temporarily setting my locale to Paris and restarting Chrome. My 'local' time was then 3:10 am. I then saw a departure listed for 3:22 am, arriving in 12 minutes. With the new code, that departure time displayed as 9:22 pm, so local to Amherst, still arriving in 12 minutes.

As I noted in #62, we should only merge this if we think the time displayed here should always be local to the timestamp returned by Avail.

werebus commented 7 years ago

Yeah, I think that this is unnecessary. I also wonder how this change will interact with out DST "fix".