Commit 6fb36e70 by Sofia Papagiannaki Committed by Torkel Ödegaard

ApiKeys: Fix check for UTC timezone (#17776)

getTimeZone() no longer returns an object, but a string
parent 40e5c4f8
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment