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

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

Enrico Berti 10 жил өмнө
parent
commit
b4f14e7

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

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