Browse Source

[oozie] Remove seconds from Coordinator from/to and add Z at the end

Enrico Berti 10 năm trước cách đây
mục cha
commit
3c784c9

+ 7 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -1278,10 +1278,16 @@ ko.bindingHandlers.timepicker = {
 
       _el.timepicker({
         minuteStep: 1,
-        showSeconds: true,
+        showSeconds: false,
         showMeridian: false,
         defaultTime: false
       });
 
+      _el.on("change", function () {
+        if (_el.val().substr(-1) != "Z") {
+          _el.val(_el.val() + "Z");
+        }
+      });
+
     }
 }