From 8b54076d4c2927c080ab073c98e5c8a36e272ebd Mon Sep 17 00:00:00 2001 From: Ariel Salem Date: Thu, 5 Dec 2019 14:04:23 -0800 Subject: [PATCH] feat(ui): added more time formats for table dropdown (#16147) * fix(ui): added new selections for time format dropdown * fix(ui): updated giraffe version to allow for changes to be reflected --- ui/package.json | 2 +- ui/src/dashboards/constants/index.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/package.json b/ui/package.json index ef98eb8946..2c181186df 100644 --- a/ui/package.json +++ b/ui/package.json @@ -129,7 +129,7 @@ "dependencies": { "@influxdata/clockface": "1.0.6", "@influxdata/flux-parser": "^0.3.0", - "@influxdata/giraffe": "0.16.8", + "@influxdata/giraffe": "0.16.9", "@influxdata/influx": "0.5.5", "@influxdata/influxdb-templates": "0.9.0", "@influxdata/react-custom-scrollbars": "4.3.8", diff --git a/ui/src/dashboards/constants/index.ts b/ui/src/dashboards/constants/index.ts index 825eee7db8..bc1cd40e6b 100644 --- a/ui/src/dashboards/constants/index.ts +++ b/ui/src/dashboards/constants/index.ts @@ -33,8 +33,11 @@ export const DEFAULT_TABLE_OPTIONS = { export const FORMAT_OPTIONS: Array<{text: string}> = [ {text: DEFAULT_TIME_FORMAT}, + {text: 'DD/MM/YYYY HH:mm:ss.sss'}, {text: 'MM/DD/YYYY HH:mm:ss.sss'}, {text: 'YYYY/MM/DD HH:mm:ss'}, + {text: 'HH:mm a'}, + {text: 'HH:mm'}, {text: 'HH:mm:ss'}, {text: 'HH:mm:ss ZZ'}, {text: 'HH:mm:ss.sss'},