Julien-Cousineau / MNRF

MNRF Dashboard
MIT License
2 stars 0 forks source link

Change Timezone to EST #1

Closed Julien-Cousineau closed 6 years ago

Julien-Cousineau commented 6 years ago

The current timezone is GMT. Change the api url to EST if possible.

rywhale commented 6 years ago

From the KiWIS API docs:

timezone --> the time zone that will be returned for all timestamps, any time zone string as understood by Java (e.g. GMT+5, UTC, CET) or 'individual' to use individual timeseries timezones

So you just have to append &timezone=EST to the end of the query URL.

e.g. http://204.41.16.133/KiWIS/KiWIS?service=kisters&type=queryServices&request=getTimeseriesValues&datasource=0&format=html&ts_id=948603042&timezone=EST

Julien-Cousineau commented 6 years ago

I like the solution, however the KiWIS does not change automatically EST to EDT. Another solution is to convert GMT to web browser timezone, this would solve the EST and EDT issue.

Julien-Cousineau commented 6 years ago

The app will show the data based on the client's (web browser) timezone.