ui-components icon indicating copy to clipboard operation
ui-components copied to clipboard

PrometheusGraph component time display is not friendliness

Open zhukai1991 opened this issue 6 years ago • 1 comments

The TimestampTag component cannot customize the time format, and UTC is not a good display time format

zhukai1991 avatar Sep 21 '18 08:09 zhukai1991

@zk923852367 Thanks for opening this issue!

UTC time format is the one we're using across our product Weave Cloud. While there is a side discussion going on about supporting local user time zone and indeed custom time formats in our app, the current situation is that we only need TimestampTag component to display times in UTC.

Having said that, feel free to open a PR that makes the component accept a custom time zone prop to make it more robust if that's how you wanted to use it for your purposes - it will probably come in handy for us as well at some point ;)

fbarl avatar Oct 24 '18 09:10 fbarl