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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group