Эх сурвалжийг харах

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

(cherry picked from commit c126bc7b0d647bf73a376b2cf71faa300340ec9d)

Change-Id: I29711e43d3d014e5037ac18b37f3e685fe838759
(cherry picked from commit 47a8b52021176d56eb02ca893856f545bbc53001)
Johan Ahlen 6 жил өмнө
parent
commit
a0028194b8

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

@@ -68,7 +68,7 @@ from metadata.conf import has_optimizer, OPTIMIZER
       try {
       try {
         mTime = new Date(mTime);
         mTime = new Date(mTime);
         if (moment(mTime).isValid()) {
         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) {
       catch (e) {