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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mattiarusso
Frequent Visitor

CRM API REST date time zone UTC issue

Hello Everybody,

I have a problem with the DateTimeZone in Power BI Service.

I retrieved a data/time field by CRM Online in Power BI Desktop by using CRM API REST. In Power BI Desktop the data/time field is the same in the CRM, but when i pubblished the report in Power BI Service, the API REST convert my date/time field in UTC time zone. I tried to convert the date in power query by using the function DateTimeZone.ToLocal([my date/time field] but the function convert my date in the UTC time zone,I think because the data is stored in Ireland (GMT Time, UTC +0) and I want to display data/time field in CET time zone (UTC +1) .
Someone could help me?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @mattiarusso,

 

According to your description, you want to modify the utc timezone to your local timezone, right?

If this is a case, you can use DateTimeZone.SwitchZone function or DateTime.AddZone function to achieve your requirement.

 

Reference links:

DateTimeZone.SwitchZone

DateTime.AddZone

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @mattiarusso,

 

According to your description, you want to modify the utc timezone to your local timezone, right?

If this is a case, you can use DateTimeZone.SwitchZone function or DateTime.AddZone function to achieve your requirement.

 

Reference links:

DateTimeZone.SwitchZone

DateTime.AddZone

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank you @v-shex-msft.

 

What will happen when the time zone will change by CET (Central Europe Time [UTC +1])  to CEST (Central Europe Summer Time [UTC +2]). The function DateTimeZone.SwitchZone handles this datetime zone change?

 

 

Thanks again

Hi @mattiarusso,

 

Sorry for slow response, I think your datetime will transfer like below:

 

UTC:  8:00 +0
CET:  9:00 +1
CEST: 10:00 +2

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

@v-shex-msft / Xiaoxin Sheng

 

Is it planned to provide an implementation by Microsoft for

Power BI service to evaluate the browser time zone settings?

 

Best would be if your new implementation would do:

  1. Get the current time zone setting from the connected browser
  2. Allow (via dedicated datetime methods) filtering and display to use that request specific user time zone

= Users from Asia or Australia see the same reports as those from Europa as those from the USA.
But: Those from Australia with the appropriate Australian time zone, those from Europe ...

 

Example:

The very same record would show 01:40 May 1, 2018 in Australia
But: 17:40 April 30, 2108 in Switzerland

And: 11:40 April 30, 2018 in New York

 

Best regards, David

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.