I want to get the timezone in SharePoint, which is set in the regional settings. To be specific it is set as Japan Time. I am using javascript to fetch the time, but unfortunately I can't.
I tried this:
var value = SP.RegionalSettings.get_timeZones ()
which can be found here
and this
var object = new SP.TimeZone()
which can be found here
Is there something that I miss before using this? Or is there something I need to configure before I can use this in my codes.