Defaulttimezone: Stsadm property (Windows SharePoint Services)
Applies To: Windows SharePoint Services 3.0
Description
Specifies the time zone for sites that are created in a Web application.
This property is equivalent to the Default Time Zone user interface setting that is located on the Web Application General Settings page of the SharePoint Central Administration Web site.
Syntax
stsadm -o setproperty
-propertyname defaulttimezone
-propertyvalue <A time zone specified by a numerical value>
**\[-url** \<https://server\_name\>**\]**
The syntax for the getproperty operation is:
stsadm -o getproperty
propertyname defaulttimezone
**\[-url** \<https://server\_name\>**\]**
Note
You can substitute -pn for -propertyname and -pv for -propertyvalue.
Property values
The following table shows possible values.
Name |
Value |
propertyname |
Gets or sets the name of the property. |
propertyvalue |
Any time zone that is recognized by Windows Server 2003 or Windows 2008. For example, a value of 13 equates to "(GMT-08:00) Pacific Time (US and Canada); Tijuana". For a complete list of valid time zones, see Regional and Language Settings (https://go.microsoft.com/fwlink/?LinkId=101551&clcid=0x409). |
url |
Typically, a path to the URL of the Web application, in the form http://server_name. |
Examples
To set the default time zone to Central Time (US and Canada) on a Web application at port 1000, use the following syntax:
stsadm -o setproperty -pn defaulttimezone -pv 11 –url http://[server_name]:1000