cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
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
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.