Skip to content

Commit

Permalink
fix: prevent time field names from being formatted (#20966)
Browse files Browse the repository at this point in the history

Co-authored-by: Timmy Luong <[email protected]>
  • Loading branch information
danxmoran and TCL735 authored Mar 17, 2021
1 parent 70fa2bb commit a6c7df1
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 @@ -29,6 +29,7 @@ the endpoint has been removed. Use the `/metrics` endpoint to collect system sta
1. [20833](https://github.com/influxdata/influxdb/pull/20833): Fix Single Stat graphs with thresholds crashing on negative values.
1. [20843](https://github.com/influxdata/influxdb/pull/20843): Fix data race in TSM cache. Thanks @StoneYunZhao!
1. [20967](https://github.com/influxdata/influxdb/pull/20967): Log error details when `influxd upgrade` fails to migrate databases.
1. [20966](https://github.com/influxdata/influxdb/pull/20966): 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 a6c7df1

Please sign in to comment.