Getting correct offset for timezone using current_timestamp in apache spark
问题 I am new to both Java and Apache spark and trying to understand the timestamp and timezone usage. I would like all the timestamps to be stored in EST timezone in SQL Server from data i get from apache spark DF. When I use current_timestamp, I am getting the correct EST time but the offset i am getting when i look at data is '+00:00' instead of '-04:00'. Here is a value stored in database that is passed in from spark dataset: 2020-04-07 11:36:23.0220 +00:00 From what I see current_timestamp