You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
It breaks conditionally annually(?) ex: when it was date light savings time the app was off by a hour.
theres an issue with momentum handling the date times from hrtb.us and i manually parse the times from GMT to EST by manually subtracting 4-5 hours. (240-300 minutes).
this is really brittle and could be improved if momentum was utilized correctly to parse the date response from the server and then used the date.diff function in momentum for date comparisons.
This breaks every time daytime changes.
see https://github.com/Code4HR/hrt-bus-text-my-bus/blob/master/app.js#L116-119 for where a refactor could be useful.
I hacked together the date time parsing and diffing because Moment nor DateString was not working.
The text was updated successfully, but these errors were encountered: