I'm trying to get current user's regional settings.
var regionalSettings = context.Web.RegionalSettings works but there is no
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
What I end up doing-
I need the timezone to handle the dates of an upload file just after the upload. Since requesting current user's and web's
TimeZone objects got pretty messy and took too much time I decided to conclude the time zone from file's modified property:
var fileModifiedDate = uploadedFile.ListItemAllFields.Modified; return Math.round(moment.utc(fileModifiedDate).diff(moment.utc(), 'hours', true));