etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
969 stars 112 forks source link

Display timestamps on the frontend in a configurable timezone #42

Closed mareban closed 6 years ago

mareban commented 7 years ago

Is it possible to have time in CEST instead of GMT Please ?

Thanks for your help.

AGirin commented 7 years ago

It would be great that this is controlled by the browser time zone. I am on CST and this is really confusing to see time in GMT.

kiwiz commented 7 years ago

I think this should be doable by modifying formatDate here: https://github.com/etsy/411/blob/master/htdocs/assets/js/util.js#L11

However, I'm unclear on the consequences. This is very low priority for me and a PR would be welcome!

mareban commented 7 years ago

We cannot use 411 in prod with GMT time ! It would be nice if we can have a solution please :) ?

Thanks for your help.

kiwiz commented 7 years ago

https://github.com/etsy/411/blob/master/htdocs/assets/js/util.js#L11-L16 If you replace toUTCString with toDateString, it might work.

kiwiz commented 7 years ago

Pointers for anyone who works on this:

kiwiz commented 7 years ago

Finished up frontend implementation. Remaining: