Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NagaRK
Advocate I
Advocate I

How to store time zone information in Fabric Datawarehouse

Hi Team,

I have the datetime and timezone infromation in snowflake like below stored in single column in Snowflake.  Snowflake has datatype TIMESTAMP_TZ(9) which support both datetime and zone information. But fabric has only datetime data type.  How shouId I store the datetime and timezone information together in Fabric Datawarehouse table column. We are inprocess of migraiton.  Could you please suggest?

 

Snowflkake Date time and zone:

2025-04-23 15:36:06.505 +0200
1 ACCEPTED SOLUTION

Option 1 for me, always.

View solution in original post

4 REPLIES 4
BhaveshPatel
Community Champion
Community Champion

For warehouse timezone to work, you should use notebooks.



from pyspark.sql.functions import *

sdf_sk = sdf \
         .withColumn("INSERTED_DTM",from_utc_timestamp(current_timestamp(),"Australia/Sydney" )) \
         .withColumn("UPDATED_DTM",from_utc_timestamp(current_timestamp(),"Australia/Sydney" ))  \
 
display(sdf_sk)
Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.
NagaRK
Advocate I
Advocate I

@lbendlin Thanks for your suggestion. I am thinking of following options as well to make use of datetime datatype. What do you suggest?

1) Store the data completely in UTC instead of mainting the zone information

2) Store the datetime in Datetime colum and zone infromation in the varchar column.

Option 1 for me, always.

lbendlin
Super User
Super User

Your only option at the moment is a text column.  Ideally in ISO-8601 format

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.