Users regional settings (TimeZone)

Hello,

I have a form for users to make a reservation. A flow sends a meeting request to confirm his reservation.
Sometimes there is problem with the timezone. (Users timezone is the default and not his Europe/Brussels).

How can i check the users Regional Settings from my form?

Thank you,

Daniël

Hello @danieljr,

You can get the time zone of the current user using PnPjs:

pnp.sp.profiles.myProperties.get().then(function(result) {

        var props = result.UserProfileProperties;

        for (var i = 0; i < props.length; i++) {
        	if(props[i].Key == 'SPS-TimeZone') {
        		alert(props[i].Value);
        	}
        }
});

The time zone should be specified in the "SharePoint Admin Centre > Classic features > User Profiles > Manage User Profiles > Edit User Profile".

But I'm not sure that I understand your case. The form and flow uses the time zone of the site collection. Are you using any code to set the Date and Time?