This is an automated email from the ASF dual-hosted git repository. kurt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push: new 53a044c [FLINK-13232][table-planner-blink] Fix CURRENT_DATE test to avoid timezone error 53a044c is described below commit 53a044c987718d74db3a9b6102f1fa27324a7fab Author: Jingsong Lee <lzljs3620...@aliyun.com> AuthorDate: Fri Jul 12 14:07:08 2019 +0800 [FLINK-13232][table-planner-blink] Fix CURRENT_DATE test to avoid timezone error This closes #9095 --- .../scala/org/apache/flink/table/expressions/TemporalTypesTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/expressions/TemporalTypesTest.scala b/flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/expressions/TemporalTypesTest.scala index 53287d6..a43338d 100644 --- a/flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/expressions/TemporalTypesTest.scala +++ b/flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/expressions/TemporalTypesTest.scala @@ -523,7 +523,7 @@ class TemporalTypesTest extends ExpressionTestBase { "2017-11-29 18:58:58.998") val sdf = new SimpleDateFormat("yyyy-MM-dd") - sdf.setTimeZone(TimeZone.getTimeZone(config.getLocalTimeZone)) + sdf.setTimeZone(TimeZone.getTimeZone("UTC")) val currMillis = System.currentTimeMillis() val ts = new Timestamp(currMillis) val currDateStr = sdf.format(ts)