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 Apps / How to get the local t...
Power Apps
Unanswered

How to get the local time zone string of a user?

(0) ShareShare
ReportReport
Posted on by 234

We are trying to create an Outlook meeting invitation that starts and ends in the user's timezone:

 

Office365Outlook.V4CalendarPostItem(
 // users calendar
 "Calendar",
 // subject
 "Site visit: " & Text(VisitDatePicker.SelectedDate , "dd/mm/yyyy ") & HourDropdown.Selected.Value & ":" & MinuteDropdown.Selected.Value & " @ " & varSiteLocation.ShortCode,
 // meeting start time
 DateAdd(VisitDatePicker.SelectedDate + Time(
 Value(HourDropdown.Selected.Value),
 Value(MinuteDropdown.Selected.Value),
 0
 ), TimeZoneOffset(), Minutes)
 , 
 // meeting end time
 DateAdd(VisitDatePicker.SelectedDate + Time(
 Value(HourDropdown.Selected.Value),
 Value(MinuteDropdown.Selected.Value),
 0
 ), 60 + TimeZoneOffset(), Minutes),
 // timezone for the meeting
 "(UTC) Coordinated Universal Time",
)

 

When we hover over the invite in Outlook we can see that the date and time is correct (from 10:00):

DarkLiteOne_0-1628063235883.png

But when we open the invite we see the UTC date format:

DarkLiteOne_0-1628062873807.png

How can we represent the date in the user's timezone? How is it possible to get the user's region to use it and not use UTC? We have users all over the world and it would be great if we could fetch the local user's timezone sting somewhere.

 

Thank you for your help. 

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! When I had problems with timezones i saw this video:

     

    https://www.youtube.com/watch?v=dbsc-Mvh7Co 

     

    It might help you.

    Also check this link and check the part that talks about converting Time

     

    https://docs.microsoft.com/pt-pt/powerapps/maker/canvas-apps/functions/function-dateadd-datediff 

  • DarkLiteOne Profile Picture
    234 on at

    Thank you, but it's not answering my question on how to get the string for the current timezone of the logged in user to use it with

    Office365Outlook.V4CalendarPostItem

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard