You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by pr...@apache.org on 2015/05/06 11:35:44 UTC

incubator-lens git commit: LENS-537: Fixes test case failures in QueryAPIErrorResponseTest caused due to unspecified date locale

Repository: incubator-lens
Updated Branches:
  refs/heads/master 9132b967e -> 9b51b46f7


LENS-537: Fixes test case failures in QueryAPIErrorResponseTest caused due to unspecified date locale


Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/9b51b46f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/9b51b46f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/9b51b46f

Branch: refs/heads/master
Commit: 9b51b46f7b4bc3e3f233adb2533a492f0512ae69
Parents: 9132b96
Author: Himanshu Gahlaut <hi...@inmobi.com>
Authored: Wed May 6 15:04:49 2015 +0530
Committer: Rajat Khandelwal <ra...@gmail.com>
Committed: Wed May 6 15:04:49 2015 +0530

----------------------------------------------------------------------
 .../org/apache/lens/cube/error/ColUnAvailableInTimeRange.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/9b51b46f/lens-cube/src/main/java/org/apache/lens/cube/error/ColUnAvailableInTimeRange.java
----------------------------------------------------------------------
diff --git a/lens-cube/src/main/java/org/apache/lens/cube/error/ColUnAvailableInTimeRange.java b/lens-cube/src/main/java/org/apache/lens/cube/error/ColUnAvailableInTimeRange.java
index e9a5e18..bac5279 100644
--- a/lens-cube/src/main/java/org/apache/lens/cube/error/ColUnAvailableInTimeRange.java
+++ b/lens-cube/src/main/java/org/apache/lens/cube/error/ColUnAvailableInTimeRange.java
@@ -22,6 +22,7 @@ import static com.google.common.base.Preconditions.checkArgument;
 
 import java.text.DateFormat;
 import java.util.Date;
+import java.util.Locale;
 import java.util.TimeZone;
 
 import javax.xml.bind.annotation.XmlAccessType;
@@ -45,7 +46,7 @@ public class ColUnAvailableInTimeRange {
   private static final ThreadLocal<DateFormat> DATE_FORMAT = new ThreadLocal<DateFormat>() {
     @Override
     protected DateFormat initialValue() {
-      DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL);
+      DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);
       dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
       return dateFormat;
     }