<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BUG in  TIME ZONE EST function in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/bug-in-time-zone-est-function/m-p/31641#M23052</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found the bug while using in "from_utc_timestamp" function while using from UTC time stamp to EST time stamp&lt;/P&gt;&lt;P&gt;Below is the Query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Query:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;select trim(current_timestamp()) as Current&lt;/P&gt;&lt;P&gt;,trim(from_utc_timestamp(current_timestamp(),'EST')) as EST&lt;/P&gt;&lt;P&gt;,trim(from_utc_timestamp(current_timestamp(),'UTC-4')) as UTC_Minus_Four&lt;/P&gt;&lt;P&gt;,trim(date_add(current_timestamp(),-1)) as Day_Minus_One&lt;/P&gt;&lt;P&gt;,trim(date_add(from_utc_timestamp(current_timestamp(),'EST'),-1)) as EST_Day_Minus_one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the output is attached in the scrren shot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1494iEF0C0150BF07770E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;The 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).&lt;/P&gt;&lt;P&gt;As per the screenshot it is giving output as Eastern Standard Time(UTC-5) during summer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 15:23:14 GMT</pubDate>
    <dc:creator>vamsi0132</dc:creator>
    <dc:date>2022-09-15T15:23:14Z</dc:date>
    <item>
      <title>BUG in  TIME ZONE EST function</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-in-time-zone-est-function/m-p/31641#M23052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found the bug while using in "from_utc_timestamp" function while using from UTC time stamp to EST time stamp&lt;/P&gt;&lt;P&gt;Below is the Query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Query:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;select trim(current_timestamp()) as Current&lt;/P&gt;&lt;P&gt;,trim(from_utc_timestamp(current_timestamp(),'EST')) as EST&lt;/P&gt;&lt;P&gt;,trim(from_utc_timestamp(current_timestamp(),'UTC-4')) as UTC_Minus_Four&lt;/P&gt;&lt;P&gt;,trim(date_add(current_timestamp(),-1)) as Day_Minus_One&lt;/P&gt;&lt;P&gt;,trim(date_add(from_utc_timestamp(current_timestamp(),'EST'),-1)) as EST_Day_Minus_one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the output is attached in the scrren shot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1494iEF0C0150BF07770E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;The 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).&lt;/P&gt;&lt;P&gt;As per the screenshot it is giving output as Eastern Standard Time(UTC-5) during summer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 15:23:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-in-time-zone-est-function/m-p/31641#M23052</guid>
      <dc:creator>vamsi0132</dc:creator>
      <dc:date>2022-09-15T15:23:14Z</dc:date>
    </item>
  </channel>
</rss>

