cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KNASON
Level: Powered On

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
Dual Super User
Dual Super User

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.
KNASON
Level: Powered On

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?

Dual Super User
Dual Super User

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.
Community Support Team
Community Support Team

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

 

Hi @KNASON ,

 

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,786)