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

SharePoint: for 'Created' date - different triggers, different timezones?

Not sure if this is a bug, but applies to list or library.

 

Creating a var to get the 'Created' date using the following expression:

formatDateTime(triggerBody()?['Created'],'yyyy-MM-dd hh:mm:ss')

 

The outputs differ, based on the trigger. Example, if the trigger is 'When item is created' then the var is set to 2020-09-02 07:51:39.  However if the trigger is 'When an item or file is modified' the var is set to 2020-09-02 10:51:39.  Screenshots below.

 

Screen Shot 2020-09-02 at 4.07.35 PM.pngScreen Shot 2020-09-02 at 4.07.11 PM.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @damooji ,

 

Could you provide more details about the configuration of these two Flows and the details of the SharePoint list?

 

Are these two flows created by the same one? Is the same person who modified and created the item?

 

I did a test on my side, but the time displayed by Created was the same, and no similar problems were encountered.

10.PNG11.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @damooji ,

 

Could you provide more details about the configuration of these two Flows and the details of the SharePoint list?

 

Are these two flows created by the same one? Is the same person who modified and created the item?

 

I did a test on my side, but the time displayed by Created was the same, and no similar problems were encountered.

10.PNG11.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (7,349)