Explorar o código

ApiKeys: Fix check for UTC timezone (#17776)

getTimeZone() no longer returns an object, but a string
Sofia Papagiannaki %!s(int64=6) %!d(string=hai) anos
pai
achega
6fb36e705f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/features/api-keys/ApiKeysPage.tsx

+ 1 - 1
public/app/features/api-keys/ApiKeysPage.tsx

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