SP.RegionalSettings.timeZone property (sp.js)
Gets the time zone that is used on the server.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.RegionalSettings.get_timeZone ()
Return value
SP.TimeZone
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/RegionalSettings/timeZone
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/RegionalSettings/timeZone
GET syntax
GET http://<sitecollection>/<site>/_api/web/RegionalSettings/timeZone
Alert
Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects.