web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create Event - Time Zo...
Power Automate
Unanswered

Create Event - Time Zone / All day event

(0) ShareShare
ReportReport
Posted on by 27

I made a SharePoint out of office calendar that employees can enter their requests for time off. An approval email is sent to their manager. The calendar allows for all day events or those with specific start and end times.

 

When someone enters an all day event, and you format it to just show the date (because the time is not important) the date time - convert time zone rounds an event end time to the next day! So the Sharepoint calendar shows it ending at 11:59 PM on day 1. The email formatted to just show the date rounds to day 2.

 

If you do show the time, it actaully changes both the start and end times. I've changed the input and output time zones and it still changes the times.

 

Has anyone else seen the time zone formatting not process an all day event from a calendar properly? 

Thanks

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @ DB1,

     

    Could you please share a screenshot of the configuration of your flow?

    Do you want to use the “Convert time zone” action to get the date of an all day event?

     

    What has you filled in the “Destination time zone” field?

    If you choose a time zone and the time zone would early or late than the UTC time “11:59 PM on day 1”, and the time would be converted to the Destination time “day 2”.If you choose a time zone the “(UTC) Coordinated Universal Time” in the “Source time zone” and “Destination time zone” field, the UTC time “11:59 PM on day 1” wouldn’t be converted to the Destination time “day 2”.

     

    If you only want to get the date of the all day event,

    I have made a test on my side, you could refer to screenshot below to create the flow to get the date of an all day event:

    1.png

    You could choose the “End Time” dynamic content of the trigger “When an item is created” in the “Base time” field of the “Convert time zone” action, choose the “Short date pattern – 6/15/2009 [d]” in the “Format string” field, choose the “(UTC) Coordinated Universal Time” in the “Source time zone” and “Destination time zone” field.

     

    When an event is created in the calendar, the flow would run successfully as below:

     2.png

     3.png

     

     

    Regards,
    Alice Zhang

  • DB1 Profile Picture
    27 on at

    Here is the part that matters. Notice the all day event starts on April 27th at midnight. This particular time was selected because in the calendar it was set as an "all day event". The person doesn't put in a time.

     

    The Body output says April 26th! 

     TimeFormat2.png

     

     

     

     

    Now the approval:

    TimeFormat2.png

     

    Here is the email that arrives:

    TimeFormat3.png

  • hubertlam Profile Picture
    153 on at

    . del

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard