Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent time field names from being formatted #20966

Merged
merged 2 commits into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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