Skip to content

Commit

Permalink
Merge branch '5.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
vcrfxia committed Oct 2, 2019
2 parents aa44527 + b99e5ba commit 502c662
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/developer-guide/syntax-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ Scalar functions
| | | example: ``'yyyy-MM-dd''T''HH:mm:ssX'``. |
| | | TIMEZONE is an optional parameter and it is a |
| | | java.util.TimeZone ID format, for example: "UTC", |
| | | "America/Los_Angeles", "PDT", "Europe/London". For|
| | | "America/Los_Angeles", "PST", "Europe/London". For|
| | | more information on timestamp formats, see |
| | | `DateTimeFormatter <https://cnfl.io/java-dtf>`__. |
+------------------------+---------------------------------------------------------------------------+---------------------------------------------------+
Expand Down Expand Up @@ -1762,7 +1762,7 @@ Scalar functions
| | | ``'yyyy-MM-dd''T''HH:mm:ssX'``. |
| | | TIMEZONE is an optional parameter and it is a |
| | | java.util.TimeZone ID format, for example: "UTC", |
| | | "America/Los_Angeles", "PDT", "Europe/London". For|
| | | "America/Los_Angeles", "PST", "Europe/London". For|
| | | more information on timestamp formats, see |
| | | `DateTimeFormatter <https://cnfl.io/java-dtf>`__. |
+------------------------+---------------------------------------------------------------------------+---------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public long stringToTimestamp(
+ " java.time.format.DateTimeFormatter.") final String formatPattern,
@UdfParameter(
description = " timeZone is a java.util.TimeZone ID format, for example: \"UTC\","
+ " \"America/Los_Angeles\", \"PDT\", \"Europe/London\"") final String timeZone) {
+ " \"America/Los_Angeles\", \"PST\", \"Europe/London\"") final String timeZone) {
try {
final StringToTimestampParser timestampParser = parsers.get(formatPattern);
final ZoneId zoneId = ZoneId.of(timeZone);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public String timestampToString(
+ " java.time.format.DateTimeFormatter.") final String formatPattern,
@UdfParameter(
description = " timeZone is a java.util.TimeZone ID format, for example: \"UTC\","
+ " \"America/Los_Angeles\", \"PDT\", \"Europe/London\"") final String timeZone) {
+ " \"America/Los_Angeles\", \"PST\", \"Europe/London\"") final String timeZone) {
try {
final Timestamp timestamp = new Timestamp(epochMilli);
final DateTimeFormatter formatter = formatters.get(formatPattern);
Expand Down

0 comments on commit 502c662

Please sign in to comment.