lamber-ken commented on issue #7180: [FLINK-11010] [TABLE] Flink SQL timestamp is inconsistent with currentProcessingTime() URL: https://github.com/apache/flink/pull/7180#issuecomment-450462796 hi, @hequn8128, tableEnv can set timezone like bellow code. but just only set the timezone, not apply to flink system. yes, it is better to solve it once for all, not just add the offset simply. ``` StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); StreamTableEnvironment tableEnv = StreamTableEnvironment.getTableEnvironment(env); tableEnv.getConfig().setTimeZone(TimeZone.getDefault()); ``` Or it can just add the offset simply now, and then redesign how to solve this problem(for example, a global timezone configuration). because it can solve the problem currently.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
