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

Set Timezone for each user

Hi I have a vacation request with the date and time. When a user requests the date off he can also request the time. Is there a way I can show the timezone too based on where he is located? For example, if hes on the east coast and im central time can it show the time he requested is east coast time?

2 REPLIES 2
RezaDorrani
Level 10

Re: Set Timezone for each user

Hi @karlagb20 

 

All date and time in PowerApps is in UTC format and will autmatically handle the various time zones

 

"UTC"
    & If(TimeZoneOffset() > 0, "-", "+")
    & RoundDown(Abs(TimeZoneOffset()) / 60, 0)
    & ":"
    & If(Mod(Abs(TimeZoneOffset()), 60) < 10, "0", "")
    & Mod(Abs(TimeZoneOffset()), 60)

https://powerusers.microsoft.com/t5/General-Discussion/Get-current-user-s-timezone/td-p/280334 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

karlagb20
Level: Powered On

Re: Set Timezone for each user

@RezaDorrani Where does that code go?


@RezaDorrani wrote:

Hi @karlagb20 

 

All date and time in PowerApps is in UTC format and will autmatically handle the various time zones

 

"UTC"
    & If(TimeZoneOffset() > 0, "-", "+")
    & RoundDown(Abs(TimeZoneOffset()) / 60, 0)
    & ":"
    & If(Mod(Abs(TimeZoneOffset()), 60) < 10, "0", "")
    & Mod(Abs(TimeZoneOffset()), 60)

https://powerusers.microsoft.com/t5/General-Discussion/Get-current-user-s-timezone/td-p/280334 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly


 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 241 members 5,164 guests
Please welcome our newest community members: