소스 검색

HUE-8922 [frontend] Show dates and times in local format with timezone offset details

Johan Ahlen 6 년 전
부모
커밋
c126bc7b0d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/core/src/desktop/templates/common_header_footer_components.mako

+ 1 - 1
desktop/core/src/desktop/templates/common_header_footer_components.mako

@@ -68,7 +68,7 @@ from metadata.conf import has_optimizer, OPTIMIZER
       try {
         mTime = new Date(mTime);
         if (moment(mTime).isValid()) {
-          return moment.utc(mTime).format("L LT");
+          return moment.utc(mTime).local().format("L LT Z"); // [Local Date] [Local Time] [Timezone offset]
         }
       }
       catch (e) {