<?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 Re: Timezone in silver tables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108526#M43072</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147058"&gt;@Freshman&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;By converting you datetime columns from AEST to UTC and storing as UTC you are following best practices.&lt;BR /&gt;This way you standardize the the time zone and avoid confusion, in case you will have more data from multiple time zones.&lt;/P&gt;
&lt;P&gt;When you need to display the data in a local time zone (like AEST for end users), perform the conversion from UTC to the desired time zone in your reporting layer.&lt;BR /&gt;&lt;BR /&gt;Additionally, as per &lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-datatypes.html" target="_self"&gt;documentation&lt;/A&gt;, Databricks does not have any datetime format that would contain the information about the time zone. You need to use TIMESTAMP, so converting to UTC before storing in silver is you safest bet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 08:37:21 GMT</pubDate>
    <dc:creator>filipniziol</dc:creator>
    <dc:date>2025-02-03T08:37:21Z</dc:date>
    <item>
      <title>Timezone in silver tables</title>
      <link>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108485#M43062</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What is the best practice in Databricks for storing DateTime data in silver layer tables, considering the source data is in AEST and we store it in UTC by default?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 00:28:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108485#M43062</guid>
      <dc:creator>Freshman</dc:creator>
      <dc:date>2025-02-03T00:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone in silver tables</title>
      <link>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108526#M43072</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147058"&gt;@Freshman&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;By converting you datetime columns from AEST to UTC and storing as UTC you are following best practices.&lt;BR /&gt;This way you standardize the the time zone and avoid confusion, in case you will have more data from multiple time zones.&lt;/P&gt;
&lt;P&gt;When you need to display the data in a local time zone (like AEST for end users), perform the conversion from UTC to the desired time zone in your reporting layer.&lt;BR /&gt;&lt;BR /&gt;Additionally, as per &lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-datatypes.html" target="_self"&gt;documentation&lt;/A&gt;, Databricks does not have any datetime format that would contain the information about the time zone. You need to use TIMESTAMP, so converting to UTC before storing in silver is you safest bet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 08:37:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108526#M43072</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2025-02-03T08:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone in silver tables</title>
      <link>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108528#M43073</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147058"&gt;@Freshman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What is the best practice in Databricks for storing DateTime data in silver layer tables, considering the source data is in AEST and we store it in UTC by default?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;The best practice for storing DateTime data in the Silver layer of a Databricks data lake is to store it in UTC and include a separate column for the original timezone. This ensures data consistency and allows for accurate time zone conversions during analysis. Utilize Databricks SQL functions like from_utc_timestamp() and to_utc_timestamp() for efficient time zone handling.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 08:39:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108528#M43073</guid>
      <dc:creator>robert154</dc:creator>
      <dc:date>2025-02-03T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone in silver tables</title>
      <link>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108671#M43113</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117376"&gt;@filipniziol&lt;/a&gt;&amp;nbsp;for you advice, appreciate it, that gives confidence in our solution design. yes we are do the conversion in the Reporting/Gold layer.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 22:45:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108671#M43113</guid>
      <dc:creator>Freshman</dc:creator>
      <dc:date>2025-02-03T22:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone in silver tables</title>
      <link>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108672#M43114</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147468"&gt;@robert154&lt;/a&gt;&amp;nbsp;for you advice, appreciate it, that gives confidence in our solution design. yes we are do the conversion in the Reporting/Gold layer.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 22:45:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/timezone-in-silver-tables/m-p/108672#M43114</guid>
      <dc:creator>Freshman</dc:creator>
      <dc:date>2025-02-03T22:45:30Z</dc:date>
    </item>
  </channel>
</rss>

