cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Time off request flow off by one day on calendar

Hello - I have a Time Off Request flow that was built prior to me joining the company and I noticed that when the Time Off Request is approved it adds the time off to the calendar one day before the actual scheduled time off.  How can I ge this corrected to populate correctly on the calendar?

4 REPLIES 4
Highlighted
Dual Super User II
Dual Super User II

Re: Time off request flow off by one day on calendar

I just had this conversation with someone else.  The issue revolves around timezone support.  When you save a DateOnly field in a SharePoint list or an Excel spreadsheet it always saves as a DateTime value.  Even if you tell it to be date only it will add a time field when saving it.  That timefield gets set to midnight if you don't set it explicitly. And its stored in UTC timezone.  When you then call it up and display it it will display based on a conversion to the local user's timezone.  If your timezone is after UTC then it will display as the previous day because the time portion will be several hours earlier. So instead of midnight on a specific day it may be 10:00 PM the previous day.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Anonymous
Not applicable

Re: Time off request flow off by one day on calendar

That's great!  How do I get it to correctly populate on the calendar?

Highlighted
Dual Super User II
Dual Super User II

Re: Time off request flow off by one day on calendar

In general the easiest way is to make sure that you include a time component set to NOON when you save a Date.  That will cover about half of the world in terms of timezones.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Community Support
Community Support

Re: Time off request flow off by one day on calendar

 

Hi @Anonymous ,

 

Depending on your description, perhaps you could consider using Add to time action to increase the time the Flow gets to a day to become your expected Date.

Like:

38.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.

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (3,430)