Browse Source

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

Enrico Berti 10 years ago
parent
commit
3c784c9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 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");
+        }
+      });
+
     }
 }