Explorar o código

[oozie] Preview HDFS links with the correct UTC start time

Enrico Berti %!s(int64=10) %!d(string=hai) anos
pai
achega
b4f14e71c0

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako

@@ -555,7 +555,7 @@ ${ dashboard.import_bindings() }
   }
 
   function convertVariables(path) {
-    var _startDate = moment(viewModel.coordinator.start_date.value());
+    var _startDate = moment(viewModel.coordinator.start_date.value()).utc();
     if (_startDate.isValid()){
       path = path.replace(/\${'$'}{YEAR}/gi, _startDate.year());
       path = path.replace(/\${'$'}{MONTH}/gi, zeroPadding((_startDate.month() + 1)));