Windows Azure Platform Family of articles Catalog
Many users who already use Azure Web site have discovered that the default system time for Azure Web site is the UTC time zone.
For example, we create a Web site project locally using Visual Studio 2013 and enter the following code in Default.aspx.cs:
Label1.Text = DateTime.Now.ToString ();
After the compilation is passed, the local system time is displayed on-premises debugging.
When we deploy to Azure Web site, the UTC time zone is displayed. Such as:
In fact, we can set the current time of Web site through the Web Site Configuration page, for example:
Add application configuration, such as:
Set the Website_time_zone value to China standard time.
This allows the default UTC time zone to be set to China time, which is the utc+8 time zone.
This will be displayed for the utc+8 time zone, such as:
Other time zone, you can query http://zonetime.azurewebsites.net/
Bo-Three Stone Blog (hereinafter referred to as Benbow), at the end of this blog article at the bottom of the right is not noted reproduced, source, provenance of the works (content) are the original, the site for the original content of the copyright reserved, do not arbitrarily reproduced, if the need for a friend can send mail contact me; reproduced original works (content ) must also follow the Creative Commons agreement "attribution-non-commercial use-consistent", be sure to indicate or retain the original source of the article and the information of the blogger (Lei Zhang) in the form of a text link, and be sure to keep in mind that the photograph works on this blog (www.cnblog.com/ Threestone) and other relevant watermark copyright information, otherwise deemed to infringe the original Copyright Act; Benbow declined commercial website reprint. All rights reserved, prohibit illegal and malicious plagiarism which violates the copyright protection Law of the People's Republic of China and related laws and Benbow (legal) statement.
Windows Azure Web site (8) Sets the Web site time zone