fix: prevent time field names from being formatted (#20932)

pull/20929/head
Timmy Luong 2021-03-15 11:02:22 -07:00 committed by GitHub
parent 643acd4ab1
commit feb61b774d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ or `/query` HTTP endpoints.
1. [20827](https://github.com/influxdata/influxdb/pull/20827): Remove unauthenticated, unsupported `/debug/vars` HTTP endpoint.
1. [20856](https://github.com/influxdata/influxdb/pull/20856): Respect 24 hour clock formats in the UI and allow more choices
1. [20875](https://github.com/influxdata/influxdb/pull/20875): Prevent "do not have an execution context" error when parsing Flux options in tasks.
1. [20932](https://github.com/influxdata/influxdb/pull/20932): Prevent time field names from being formatted in the Table visualization
## v2.0.4 [2021-02-08]

View File

@ -250,7 +250,7 @@ class TableCell extends PureComponent<Props> {
const {properties, data, dataType, timeFormatter} = this.props
const {decimalPlaces} = properties
if (data && dataType.includes('dateTime')) {
if (data && dataType.includes('dateTime') && !this.isFieldName) {
return timeFormatter(data)
}