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

Community site session details

Session Id : LhTbKlvDidVtC4kLq/CMHl
Power Apps - Building Power Apps
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 4 Aug 2021 07:19:46 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. 

I have the same question (0)
  • DarkLiteOne Profile Picture
    234 on 04 Aug 2021 at 09:08:12
    Re: How to get the local time zone string of a user?

    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

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on 04 Aug 2021 at 08:26:04
    Re: How to get the local time zone string of a user?

    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 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete