<?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: Setting timezone at a workspace level in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160518#M5348</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your response and&amp;nbsp; a detailed explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So having to transform each instance of timestamp column using to_utc_timestamp&amp;nbsp; is not very scalable. We have a few thousand tables that we're looking to move to databricks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting at compute level helps some but we're also looking to move some future ETL processes to use serverless compute. My main concern is if we cannot set the default at a higher level (Workspace), its prone to someone forgetting to set it in their session or computes and we end up with mix of good and bad timestamps.&lt;/P&gt;&lt;P&gt;Is there a technical reason why the setting is not available at workspace level?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2026 12:33:58 GMT</pubDate>
    <dc:creator>MDAtl</dc:creator>
    <dc:date>2026-06-25T12:33:58Z</dc:date>
    <item>
      <title>Setting timezone at a workspace level</title>
      <link>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160423#M5345</link>
      <description>&lt;P&gt;So all our on-prem datasources have timezones set to local (US East) and all timestamps stored in the table are in US East. As we're ETLing them to Databricks we're noticing that the same timestamp is now stored in UTC. So what was 6am in EST is now 6AM in UTC which is 2AM EST. So we'd like for&amp;nbsp; 6AM EST in our source system be stored as 6AM in EST (or 10 AM UTC) in our Delta lake tables.&lt;/P&gt;&lt;P&gt;Is there a way to set the default&amp;nbsp; timezone in Databricks at a workspace level ? All that I have seen so far shows how to set them at session or compute level. We'd really like to avoid setting it at compute or session level.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 16:00:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160423#M5345</guid>
      <dc:creator>MDAtl</dc:creator>
      <dc:date>2026-06-24T16:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone at a workspace level</title>
      <link>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160424#M5346</link>
      <description>&lt;P&gt;You can follow certain ways to get the type of effect as there is no a single configuration for it.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;SQL Warehouses&lt;/STRONG&gt; - You can set TIMEZONE parameter (globally) for the warehouse using SQL configuration parameters in the warehouse settings leading to&amp;nbsp;&lt;SPAN&gt;all sessions on the warehouse inheriting this time zone by default&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Compute -&amp;nbsp;&lt;/STRONG&gt;You can set spark.sql.session.timeZone in Cluster configuration (&lt;STRONG&gt;Spark config&lt;/STRONG&gt;) and use &lt;STRONG&gt;policies&lt;/STRONG&gt; to enforce &lt;STRONG&gt;across multiple clusters&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Setting time zone configuration affects how timestamps are&amp;nbsp;&lt;/SPAN&gt;displayed and manipulated&lt;SPAN&gt;, but it doesn't fix timestamps that are already stored incorrectly. You can handle it during ingestion by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;using TIMESTAMP_NTZ columns in Delta tables to preserve wall clock time without time zone interpretation or using to_utc_timestamp() during ingestion to properly convert EST to UTC&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 16:30:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160424#M5346</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-06-24T16:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone at a workspace level</title>
      <link>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160449#M5347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146751"&gt;@MDAtl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The short answer is no workspace-wide timezone setting for all Databricks compute.&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;The long answer is that... this is expected&amp;nbsp;TIMESTAMP behaviour. The timestamp values represent an absolute point in time, are normalised and persisted in UTC, and the session time zone is applied when values are displayed, or date-time fields are extracted.&lt;/P&gt;
&lt;P&gt;There is no documented workspace-wide setting that changes this. For Databricks SQL, the &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/parameters/timezone" rel="noopener noreferrer nofollow" target="_blank"&gt;TIMEZONE parameter&lt;/A&gt; can be set at the session level and also globally for SQL warehouses by using SQL configuration parameters or the SQL Warehouse API, and the documented system default is UTC. For &lt;A href="https://docs.databricks.com/aws/en/admin/sql/" rel="noopener noreferrer nofollow" target="_blank"&gt;SQL warehouse admin settings&lt;/A&gt;, the workspace-level SQL parameter setting applies to all SQL warehouses in the workspace, and changing it restarts running SQL warehouses.&lt;/P&gt;
&lt;P&gt;For notebooks and jobs, the public guidance is still session or compute-scoped rather than workspace-scoped. The &lt;A href="https://docs.databricks.com/aws/en/spark/conf" rel="noopener noreferrer nofollow" target="_blank"&gt;Spark configuration docs&lt;/A&gt; show that notebook-level settings affect only the current SparkSession, compute-level settings apply to workloads on that compute, and for serverless notebooks and jobs, the documented default for spark.sql.session.timeZone is Etc/UTC.&lt;/P&gt;
&lt;P&gt;Because of that, the recommended approach for ETL is to convert the source timestamps explicitly during ingestion instead of relying on a workspace default. If your source value 2026-01-15 06:00:00 means "6 AM in New York", convert it to UTC on write using &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/functions/to_utc_timestamp" rel="noopener noreferrer nofollow" target="_blank"&gt;to_utc_timestamp&lt;/A&gt; in SQL or the &lt;A href="https://docs.databricks.com/aws/en/pyspark/reference/functions/to_utc_timestamp" rel="noopener noreferrer nofollow" target="_blank"&gt;PySpark equivalent&lt;/A&gt;, so that it is stored as the equivalent instant, which would be 2026-01-15 11:00:00 UTC during standard time or 2026-01-15 10:00:00 UTC during daylight saving time, depending on the date. Use a region-based time zone such as America/New_York rather than a short form like EST, because Databricks documents that short names can be ambiguous in the &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/parameters/timezone" rel="noopener noreferrer nofollow" target="_blank"&gt;TIMEZONE parameter docs&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Sample SQL:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;-- raw_ts is a local wall-clock timestamp from the source system
-- Example: 2026-01-15 06:00:00 means 6 AM in America/New_York

INSERT INTO main.prod.target_table
SELECT
  id,
  to_utc_timestamp(CAST(raw_ts AS TIMESTAMP), 'America/New_York') AS event_ts_utc
FROM main.prod.source_table;&lt;/LI-CODE&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;If you want to verify the conversion for a sample value..&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;SELECT
  CAST('2026-01-15 06:00:00' AS TIMESTAMP) AS source_local_time,
  to_utc_timestamp(CAST('2026-01-15 06:00:00' AS TIMESTAMP), 'America/New_York') AS stored_utc_time;&lt;/LI-CODE&gt;
&lt;P&gt;Python sample:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;
from pyspark.sql import functions as F

df_out = (
    df
    .withColumn(
        "event_ts_utc",
        F.to_utc_timestamp(F.to_timestamp("raw_ts"), "America/New_York")
    )
)

df_out.write.format("delta").mode("append").saveAsTable("main.prod.target_table")&lt;/LI-CODE&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Any change you make to SQL settings, session settings, or ETL logic will only affect new reads and writes going forward. It will not retroactively fix data that has already been ingested incorrectly. Existing rows would need to be reprocessed or backfilled if you want the stored values corrected.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 19:23:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160449#M5347</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-06-24T19:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone at a workspace level</title>
      <link>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160518#M5348</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your response and&amp;nbsp; a detailed explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So having to transform each instance of timestamp column using to_utc_timestamp&amp;nbsp; is not very scalable. We have a few thousand tables that we're looking to move to databricks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting at compute level helps some but we're also looking to move some future ETL processes to use serverless compute. My main concern is if we cannot set the default at a higher level (Workspace), its prone to someone forgetting to set it in their session or computes and we end up with mix of good and bad timestamps.&lt;/P&gt;&lt;P&gt;Is there a technical reason why the setting is not available at workspace level?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2026 12:33:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160518#M5348</guid>
      <dc:creator>MDAtl</dc:creator>
      <dc:date>2026-06-25T12:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone at a workspace level</title>
      <link>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160530#M5349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146751"&gt;@MDAtl&lt;/a&gt;,&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 1 []"&gt;Thanks for following up. I did some research on this and couldn't find any publicly documented rationale for why Databricks doesn't expose a workspace-wide default timezone setting across all compute.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;I did, however, find similar community discussions asking for related capabilities, so this does not seem to be an isolated requirement.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Given the scale you described and the risk of inconsistent handling across classic and serverless pipelines, this may be worth raising as a feature request through your Databricks account team. I'll also raise it internally on my end, but I want to set expectations clearly that this is not a definite commitment to implementation. Prioritisation typically depends on overall customer demand, business impact, and roadmap considerations.&lt;/P&gt;
&lt;P&gt;According to the public documentation today, the supported model is that Databricks SQL can have broader SQL warehouse-level settings via the TIMEZONE parameter, whereas notebooks and jobs rely on session- or compute-scoped settings, and serverless documents use&amp;nbsp;spark.sql.session.timeZone with a default of Etc/UTC.&lt;/P&gt;
&lt;P&gt;If preserving local wall-clock time is the main requirement, one option worth evaluating is &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/data-types/timestamp-ntz-type" rel="noopener noreferrer nofollow" target="_blank"&gt;TIMESTAMP_NTZ&lt;/A&gt;, since standard TIMESTAMP values represent an absolute instant and are persisted in UTC. This is still Public Preview though.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Like I said before... even if you standardise the approach going forward, it will not retroactively fix data that has already been ingested with the wrong timezone interpretation. Existing data would need to be reprocessed or backfilled if you want those stored values corrected.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Hope this helps.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2026 13:54:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/setting-timezone-at-a-workspace-level/m-p/160530#M5349</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-06-25T13:54:31Z</dc:date>
    </item>
  </channel>
</rss>

