You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/12/10 05:05:33 UTC

[GitHub] [incubator-kyuubi] cxzl25 commented on pull request #3958: Fix Spark session timezone format

cxzl25 commented on PR #3958:
URL: https://github.com/apache/incubator-kyuubi/pull/3958#issuecomment-1345135559

   ```sql
   set spark.sql.session.timeZone=UTC;
   select from_utc_timestamp(from_unixtime(1670404535000/1000,'yyyy-MM-dd HH:mm:ss'),'GMT+08:00') as time_utc8;
   set spark.sql.session.timeZone=GMT+8;
   select from_utc_timestamp(from_unixtime(1670404535000/1000,'yyyy-MM-dd HH:mm:ss'),'GMT+08:00') as time_utc8;
   ```
   
   ## Current
   ```
   2022-12-08 01:15:35.0
   2022-12-08 01:15:35.0
   ```
   ## Fix
   
   ```
   2022-12-07 17:15:35.0
   2022-12-08 01:15:35.0
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org