共用方式為


SiteConfig.WebsiteTimeZone Property

Definition

Gets or sets sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones

[Newtonsoft.Json.JsonProperty(PropertyName="websiteTimeZone")]
public string WebsiteTimeZone { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="websiteTimeZone")>]
member this.WebsiteTimeZone : string with get, set
Public Property WebsiteTimeZone As String

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Applies to