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

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,943)