ApiKeys: Fix check for UTC timezone (#17776)

getTimeZone() no longer returns an object, but a string
This commit is contained in:
Sofia Papagiannaki
2019-06-26 11:26:16 +03:00
committed by Torkel Ödegaard
parent 40e5c4f8ba
commit 6fb36e705f

View File

@@ -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() {