Change Default Time Zone From UTC to CST in Azure Syanspe & Data Lake

Abdul Rahim Amjad 66 Reputation points
2021-11-03T13:51:37.937+00:00

I want to change the time zone of Azure Data Lake and Synapse from UTC to CST. Because I have some source systems on my on-premise like (Oracle, SQL) and they have time stamp of CST but when I ingest that into Azure Data Lake and read it from Synapse it shows me the times stamp of UTC. Is their any why to change or convert the timestamp.

Thanks in advance

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,338 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,363 questions
{count} votes

Accepted answer
  1. Saurabh Sharma 23,671 Reputation points Microsoft Employee
    2021-11-03T19:43:08.933+00:00

    Hi @Abdul Rahim Amjad ,

    Thanks for using Microsoft Q&A !!

    You cannot unfortunately change the default time zone of at server level and so you need to modify existing data queries to use AT TIME ZONE while reading the data.
    Please refer to the example which converts time between two different time zones where PST is being considered as a known time zone offset of OrderDate column and converted to CET timezone using AT TIMEZONE clause.

    SELECT SalesOrderID, OrderDate,  
        --Assign the known offset, then convert to another time zone  
        OrderDate AT TIME ZONE 'Pacific Standard Time' AT TIME ZONE 'Central European Standard Time' AS OrderDate_TimeZoneCET  
    FROM Sales.SalesOrderHeader;  
    

    Also, in storing data in a non-UTC time zone is not a best practice in my opinion.

    You could provide your feedback at Synapse Uservoice.

    Thanks
    Saurabh

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


0 additional answers

Sort by: Most helpful