mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ApiKeys: Fix check for UTC timezone (#17776)
getTimeZone() no longer returns an object, but a string
This commit is contained in:
committed by
Torkel Ödegaard
parent
40e5c4f8ba
commit
6fb36e705f
@@ -171,7 +171,7 @@ export class ApiKeysPage extends PureComponent<Props, any> {
|
||||
format = format || 'YYYY-MM-DD HH:mm:ss';
|
||||
const timezone = getTimeZone(store.getState().user);
|
||||
|
||||
return timezone.isUtc ? date.utc().format(format) : date.format(format);
|
||||
return timezone === 'utc' ? date.utc().format(format) : date.format(format);
|
||||
}
|
||||
|
||||
renderAddApiKeyForm() {
|
||||
|
||||
Reference in New Issue
Block a user