juliomrqz / statusfy

A Marvelous Open Source Status Page System
https://marquez.co/statusfy
Apache License 2.0
2.65k stars 199 forks source link

Display all information in the user's timezone #166

Open DanielGibbsNZ opened 5 years ago

DanielGibbsNZ commented 5 years ago

Feature request

What problem does this feature solve?

Users viewing the page and getting confused/frustrated by the days in the timeline being incorrect for their timezone. See #149.

What does the proposed API look like?

Adding a timezone parameter to each API request (server-rendered only).

How should this be implemented in your opinion?

  1. Detect timezone from browser (with JavaScript)
  2. Include timezone param with each API request
  3. Use user's timezone when calculating the days to show in the timeline

Note that the initial page-load of the timeline won't contain the timezone so may need to be modified to perform an API request on load.

Are you willing to work on this yourself?

Given that I don't have any experience in the technologies being used, this would take much more time than I am able to commit to this.

open-collective-bot[bot] commented 5 years ago

Hey @DanielGibbsNZ :wave:, Thank you for opening an issue.

Check out our OpenCollective and consider backing us. Help us to continue developing this Amazing Project, we will appreciate it :heart:.

You can contribute from $2 :nerd_face:, less than a cup of coffee :coffee: :smiley:

https://opencollective.com/statusfy

PS.: We offer priority support for all backers. Don't forget to add priority label when you start backing us :smile:

MaximumDamage commented 5 years ago

Would it be an option to keep the backend UTC and let the client handle conversion? This way the static pages support this feature.

ajimix commented 4 years ago

Another option is to use something like moment.js library to update the times on the browser in realtime, that would work with any kind of installation as it would be done in each user browser and according to the computer timezone.

kfox1111 commented 4 years ago

Does anyone know where all the client display code is? Maybe its just a few places?

elsbrock commented 4 years ago

I guess it is here: https://github.com/bazzite/statusfy/tree/develop/packages/%40statusfy/core/client/components

tovbinm commented 4 years ago

This would be a great addition!

juliomrqz commented 4 years ago

This feature will be available in the next major release (v1). There are big changes coming (mostly internal) for this major version. If you want more info, you go to #551. We appreciate your comments or suggestions.