Просмотр исходного кода

Add notice about using UTC time in Logs page

Since times in the app are displayed in local time (replica / migration
info, tasks, schedule etc.), a notice is displayed for Logs page where
times are displayed in UTC.
Sergiu Miclea 5 лет назад
Родитель
Сommit
960ef5a373
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      src/components/pages/LogsPage/DownloadsContent.tsx

+ 10 - 0
src/components/pages/LogsPage/DownloadsContent.tsx

@@ -33,6 +33,15 @@ const Wrapper = styled.div<any>`
   min-height: 0;
 `
 const Info = styled.div<any>``
+const InfoUtc = styled.div`
+  display: flex;
+  font-size: 12px;
+  align-items: center;
+  margin-top: 16px;
+  > div {
+    margin-right: 8px;
+  }
+`
 const Dates = styled.div<any>`
   display: flex;
   align-items: flex-end;
@@ -199,6 +208,7 @@ class DownloadsContent extends React.Component<Props, State> {
           Optional time range for log download:
         </Info>
         {this.renderDates()}
+        <InfoUtc><StatusIcon status="UNSCHEDULED" />Start and End times must be set in UTC</InfoUtc>
         {this.renderLogs()}
       </Wrapper>
     )