Author: virag
Date: Tue Dec  4 20:38:08 2012
New Revision: 1417162

URL: http://svn.apache.org/viewvc?rev=1417162&view=rev
Log:
OOZIE-1106 latest and future function do not work correctly when oozie 
processing timezone is non UTC (rohini via tucu)

Modified:
    
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java
    oozie/branches/hcat-intre/release-log.txt

Modified: 
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java
URL: 
http://svn.apache.org/viewvc/oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java?rev=1417162&r1=1417161&r2=1417162&view=diff
==============================================================================
--- 
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java
 (original)
+++ 
oozie/branches/hcat-intre/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java
 Tue Dec  4 20:38:08 2012
@@ -1208,6 +1208,7 @@ public class CoordELFunctions {
      * @return a new Evaluator to be used for URI-template evaluation
      */
     private static ELEvaluator getUriEvaluator(Calendar tm) {
+        tm.setTimeZone(DateUtils.getOozieProcessingTimeZone());
         ELEvaluator retEval = new ELEvaluator();
         retEval.setVariable("YEAR", tm.get(Calendar.YEAR));
         retEval.setVariable("MONTH", (tm.get(Calendar.MONTH) + 1) < 10 ? "0" + 
(tm.get(Calendar.MONTH) + 1) : (tm

Modified: oozie/branches/hcat-intre/release-log.txt
URL: 
http://svn.apache.org/viewvc/oozie/branches/hcat-intre/release-log.txt?rev=1417162&r1=1417161&r2=1417162&view=diff
==============================================================================
--- oozie/branches/hcat-intre/release-log.txt (original)
+++ oozie/branches/hcat-intre/release-log.txt Tue Dec  4 20:38:08 2012
@@ -1,5 +1,6 @@
 -- Oozie 3.4.0 release (trunk - unreleased)
 
+OOZIE-1106 latest and future function do not work correctly when oozie 
processing timezone is non UTC (rohini via tucu)
 OOZIE-1073 Optimize latest and future EL resolution in case of start-instance 
and end-instance (rohini via virag)
 OOZIE-1107 Change default done-flag from _SUCCESS to empty for Hcat (mohammad)
 OOZIE-1095 Add HCatalog jar as resource for building (mona)


Reply via email to