提交 53a044c9 编写于 作者: J Jingsong Lee 提交者: Kurt Young

[FLINK-13232][table-planner-blink] Fix CURRENT_DATE test to avoid timezone error

This closes #9095
上级 2c8ee78f
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册