Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 c9ec1e9d5 -> 201575c7c
PHOENIX-3221 'LOCAL' keyword is not adhered for 'phoenix.query.dateFormatTimeZone' Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/201575c7 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/201575c7 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/201575c7 Branch: refs/heads/4.x-HBase-0.98 Commit: 201575c7cf088656e00392bb0b3a0e2add8f3cb1 Parents: c9ec1e9 Author: Ankit Singhal <[email protected]> Authored: Thu Sep 29 15:31:13 2016 +0530 Committer: Ankit Singhal <[email protected]> Committed: Thu Sep 29 15:31:13 2016 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/phoenix/compile/StatementContext.java | 2 +- phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/201575c7/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java index 8ced589..ae07a9a 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java @@ -123,7 +123,7 @@ public class StatementContext { this.timeFormatter = DateUtil.getTimeFormatter(timeFormat); this.timestampFormat = props.get(QueryServices.TIMESTAMP_FORMAT_ATTRIB, DateUtil.DEFAULT_TIMESTAMP_FORMAT); this.timestampFormatter = DateUtil.getTimestampFormatter(timestampFormat); - this.dateFormatTimeZone = TimeZone.getTimeZone(props.get(QueryServices.DATE_FORMAT_TIMEZONE_ATTRIB, + this.dateFormatTimeZone = DateUtil.getTimeZone(props.get(QueryServices.DATE_FORMAT_TIMEZONE_ATTRIB, DateUtil.DEFAULT_TIME_ZONE_ID)); this.numberFormat = props.get(QueryServices.NUMBER_FORMAT_ATTRIB, NumberUtil.DEFAULT_NUMBER_FORMAT); this.tempPtr = new ImmutableBytesWritable(); http://git-wip-us.apache.org/repos/asf/phoenix/blob/201575c7/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java index 7f62797..9e37eca 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java @@ -95,7 +95,7 @@ public class DateUtil { } } - private static TimeZone getTimeZone(String timeZoneId) { + public static TimeZone getTimeZone(String timeZoneId) { TimeZone parserTimeZone; if (timeZoneId == null) { parserTimeZone = DateUtil.DEFAULT_TIME_ZONE;
