فهرست منبع

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

Enrico Berti 10 سال پیش
والد
کامیت
b4f14e7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako

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