cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Planner Create Task - Not setting correct due date.

Hi All,

I am using a SharPoint form to submit a request that starts off as a SharePoint list item.  In the form, users are selecting a due date.  

A flow trigger catches the new item, and it then uses the Planner Create Task action to create a task in my Plan.  This is working great.  The problem is... the due date appears correct in the SP list, but when I use the dynamic content for the due date field in the MS Flow Planner Create Task action... the date that appears in the Task is incorrect.  The date is showing in the Task as 1 day earlier than the due date chosen by the user, and what is seen in SharePoint.

Any thoughts on how to fix this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @Crockerfeller,

 

I think this has something to do with Time zone, so there is a time difference between the time taken in SharePoint and the time inserted into Planner task.

For example, if the DueDate field contains Time, then the time acquired in Flow will be different from the one displayed in the list, so the time inserted into the Task will be different.

Like:

35.PNG36.PNG37.PNG

If the DueDate does not contain a Time, then the obtained Date is the same, I did the test on my side, there is no error you mentioned.

38.PNG39.PNG

If you're confirming the problem caused by the time difference, you could consider using the addHours() function to eliminate the time difference, or use the Convert time zone action to eliminate the time difference.

 

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

4 REPLIES 4
Highlighted
Responsive Resident
Responsive Resident

I've seen this come up before I believe. I'm on the run right now and not in a position to search for it, but if I recall correctly, this has to do with the due date being considered an "all-day event".  Not much sorry, but hopefully points you in the right direction.  

Highlighted
Resident Rockstar
Resident Rockstar

"The problem is... the due date appears correct in the SP list, but when I use the dynamic content for the due date field in the MS Flow Planner Create Task action... the date that appears in the Task is incorrect.  The date is showing in the Task as 1 day earlier than the due date chosen by the user, and what is seen in SharePoint."

 

In order to troubleshoot this for you ... can you please post pics of your flow?

 

Any errors or identifiers that will help with the investigation welcome.

 

Thnaks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Highlighted
Community Support
Community Support

Hi @Crockerfeller,

 

I think this has something to do with Time zone, so there is a time difference between the time taken in SharePoint and the time inserted into Planner task.

For example, if the DueDate field contains Time, then the time acquired in Flow will be different from the one displayed in the list, so the time inserted into the Task will be different.

Like:

35.PNG36.PNG37.PNG

If the DueDate does not contain a Time, then the obtained Date is the same, I did the test on my side, there is no error you mentioned.

38.PNG39.PNG

If you're confirming the problem caused by the time difference, you could consider using the addHours() function to eliminate the time difference, or use the Convert time zone action to eliminate the time difference.

 

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

Highlighted
Regular Visitor

Did you ever find a resolution for this problem? I'm having the exact same issue with the Flow I created.  The Due Date is always 1 day earlier than the date selected.  Everywhere else, it is correct - including the Flow details after the workflow has ran.  It shows it populated the correct Due Date, but the Due Date on the Task is still 1 day before the selected date.  Any help would be appreciated! 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,813)