Skip to content

Commit

Permalink
Merge branch '5.2.x' into 5.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
vcrfxia committed Oct 2, 2019
2 parents 02dfbc8 + 848b5ed commit b99e5ba
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 @@ -1576,7 +1576,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 @@ -1611,7 +1611,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 @@ -68,7 +68,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 @@ -76,7 +76,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 b99e5ba

Please sign in to comment.