<?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: User default timezone (SQL) in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/user-default-timezone-sql/m-p/101913#M1751</link>
    <description>&lt;P class="p1"&gt;it is possible to set the time zone at the session level using the SET TIME ZONE statement in Databricks SQL. This allows users to control the local timezone used for timestamp operations within their session. However, there is no direct option of user-level time zone preferences that would apply to all their SQL queries across different sessions.&lt;/P&gt;
&lt;P class="p1"&gt;Here are the relevant details:&lt;/P&gt;
&lt;OL class="ol1"&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Session-Level Time Zone Setting&lt;/STRONG&gt;: You can set the time zone for a session using the SET TIME ZONE statement. This setting will apply to all timestamp operations within that session.&lt;/LI&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;Example:&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P class="p1"&gt;SET TIME ZONE = 'America/Los_Angeles';&lt;/P&gt;
&lt;P class="p1"&gt;SELECT current_timezone();&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;-- Returns 'America/Los_Angeles'&lt;/P&gt;
&lt;P class="p1"&gt;You can review this: &lt;A href="https://docs.databricks.com/en/sql/language-manual/parameters/timezone.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/parameters/timezone.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 13:06:11 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2024-12-12T13:06:11Z</dc:date>
    <item>
      <title>User default timezone (SQL)</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/user-default-timezone-sql/m-p/101886#M1750</link>
      <description>&lt;P&gt;Users get confused when querying data with timestamps because UTC is not intuitive for many. It is possible to set TIME ZONE at query level or at SQL Warehouse level, but those options fail to address the need of multiple users working on the same warehouse in different timezones.&lt;/P&gt;&lt;P&gt;Would it be possible to set user-level time zone preferences, that would apply to all their SQL queries?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 09:56:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/user-default-timezone-sql/m-p/101886#M1750</guid>
      <dc:creator>aburkh</dc:creator>
      <dc:date>2024-12-12T09:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: User default timezone (SQL)</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/user-default-timezone-sql/m-p/101913#M1751</link>
      <description>&lt;P class="p1"&gt;it is possible to set the time zone at the session level using the SET TIME ZONE statement in Databricks SQL. This allows users to control the local timezone used for timestamp operations within their session. However, there is no direct option of user-level time zone preferences that would apply to all their SQL queries across different sessions.&lt;/P&gt;
&lt;P class="p1"&gt;Here are the relevant details:&lt;/P&gt;
&lt;OL class="ol1"&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Session-Level Time Zone Setting&lt;/STRONG&gt;: You can set the time zone for a session using the SET TIME ZONE statement. This setting will apply to all timestamp operations within that session.&lt;/LI&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;Example:&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P class="p1"&gt;SET TIME ZONE = 'America/Los_Angeles';&lt;/P&gt;
&lt;P class="p1"&gt;SELECT current_timezone();&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;-- Returns 'America/Los_Angeles'&lt;/P&gt;
&lt;P class="p1"&gt;You can review this: &lt;A href="https://docs.databricks.com/en/sql/language-manual/parameters/timezone.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/parameters/timezone.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 13:06:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/user-default-timezone-sql/m-p/101913#M1751</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-12T13:06:11Z</dc:date>
    </item>
  </channel>
</rss>

