Repository: phoenix Updated Branches: refs/heads/master 6f9cca433 -> 15a2f9a62
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/15a2f9a6 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/15a2f9a6 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/15a2f9a6 Branch: refs/heads/master Commit: 15a2f9a625dc9a76fd07cae82e81d8ec1d79d622 Parents: 6f9cca4 Author: Ankit Singhal <[email protected]> Authored: Thu Sep 29 15:30:20 2016 +0530 Committer: Ankit Singhal <[email protected]> Committed: Thu Sep 29 15:30:20 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/15a2f9a6/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/15a2f9a6/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;
