cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jeretangwk
Frequent Visitor

Issues with timezone

Hi,

 

I've been browsing the forum for quite sometime but yet found a solution to my issue, hope someone can help:

1. Have a sharepoint list with 2 date/time picker (i.e. '1st Appointment' & 'Next/Last Appointment')

2. Had changed my regional settings to local time (i.e. Kuala Lumpur/Singapore)

3. Tried applying 'timezone converter' but didn't work (maybe because it is 2 dates/time instead of 1?)

 

Here's quick snapshots of my flow

jeretangwk_0-1620091013053.png

Details ('1st Appointment' & 'Next/Last Appointment' needs to be in this email, but time is always inaccurate.

jeretangwk_3-1620091308542.png

I've also another flow that has the same issue with timezone

jeretangwk_0-1620092558580.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-duann-msft
Community Support
Community Support

Hi @jeretangwk

 

Thank you for posting.

 

According to your description, you couldn’t return accurate time while using flow. If any misunderstanding, please kindly let me know.

 

I believe there is nothing to do with amount of date type column. The issue is caused by timezone conversion. If your datetime has a ‘Z’ at the end, it means it's in UTC time.

For example: 2020-04-10T01:28:14.0406387Z

 

Thus, we need to convert it manually using ‘convert time zone’ action or convertTimeZone function.

 

So seems you are located in UTC+8  region, we can try:

convertTimeZone(item()?['First_x0020_Appointment'],'UTC','Pacific Standard Time')

 

Here is my test process for your reference:

List:

v-duann-msft_0-1620109310460.png

 

Flow:

v-duann-msft_1-1620109310465.png

 

Output:

v-duann-msft_2-1620109310468.png

 

https://docs.microsoft.com/en-us/troubleshoot/power-platform/power-automate/converting-time-zone-pow...

https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones

 

Hope the content above may help you.

 

Best regards,

Anna

View solution in original post

4 REPLIES 4
v-duann-msft
Community Support
Community Support

Hi @jeretangwk

 

Thank you for posting.

 

According to your description, you couldn’t return accurate time while using flow. If any misunderstanding, please kindly let me know.

 

I believe there is nothing to do with amount of date type column. The issue is caused by timezone conversion. If your datetime has a ‘Z’ at the end, it means it's in UTC time.

For example: 2020-04-10T01:28:14.0406387Z

 

Thus, we need to convert it manually using ‘convert time zone’ action or convertTimeZone function.

 

So seems you are located in UTC+8  region, we can try:

convertTimeZone(item()?['First_x0020_Appointment'],'UTC','Pacific Standard Time')

 

Here is my test process for your reference:

List:

v-duann-msft_0-1620109310460.png

 

Flow:

v-duann-msft_1-1620109310465.png

 

Output:

v-duann-msft_2-1620109310468.png

 

https://docs.microsoft.com/en-us/troubleshoot/power-platform/power-automate/converting-time-zone-pow...

https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones

 

Hope the content above may help you.

 

Best regards,

Anna

Hi Anna,

 

The method does not seems to work with my other flow

I've create HTML table after 'Get items'

jeretangwk_0-1620204871085.png

jeretangwk_1-1620205028934.png

I've got this error message

jeretangwk_2-1620205089563.png

Would you be able to help me out on this? Thank you!

 

Hi @jeretangwk 

 

Thank you for your attempts.

 

Please help to confirm you select 'value' of 'get items' in from area in 'create html table'. 

Meanwhile, we should input formula in expression area in dynamic content interface.

v-duann-msft_1-1620205573266.png

 

Hope it helps.

 

Thanks

Anna

Hi Anna,

 

I've attempted as you suggested (not sure if done correctly) but got back the same error

jeretangwk_0-1620260777347.png

Steps i've attempted

jeretangwk_1-1620260900659.png

 

Maybe I am getting the wrong value in?

jeretangwk_3-1620285727277.png

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,266)