Skip to content

Commit

Permalink
fix: prevent time field names from being formatted (#20932)
Browse files Browse the repository at this point in the history
  • Loading branch information
TCL735 authored Mar 15, 2021
1 parent 643acd4 commit feb61b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion ui/src/shared/components/tables/TableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit feb61b7

Please sign in to comment.