cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

BUG in TIME ZONE EST function

vamsi0132
New Contributor II

Hi,

I found the bug while using in "from_utc_timestamp" function while using from UTC time stamp to EST time stamp

Below is the Query 

Query:

select trim(current_timestamp()) as Current

,trim(from_utc_timestamp(current_timestamp(),'EST')) as EST

,trim(from_utc_timestamp(current_timestamp(),'UTC-4')) as UTC_Minus_Four

,trim(date_add(current_timestamp(),-1)) as Day_Minus_One

,trim(date_add(from_utc_timestamp(current_timestamp(),'EST'),-1)) as EST_Day_Minus_one

and the output is attached in the scrren shot

imageThe expectation is the EST has to match with the current TIME ZONE i.e. During summer it should be Eastern Daylight Time (UTC-4) and during winter it should be Easter Standard Time(UTC-5).

As per the screenshot it is giving output as Eastern Standard Time(UTC-5) during summer.

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now