[IIS] 設定不同地區

當程式migrate 往另一台伺服器時, 有時因為地區設定不同, 部份格式(如日期)會有改變, 通常可以在Control Panel 的Region 進行設定, 但這是server-wide, 即是其他服務有可能因此受影響.

若要減低受影響範圍, 除了改動原始碼外, 還可以透過修改IIS 設定, 方法如下: 

  1. 於IIS Manager, 選取需要修改的網址 (Website) 後, 選取.NET Globalization.
  2. 於Culture 中選取需要的地區, 然後按Apply.
  3. Restart 修改後的網址. 
About C.H. Ling 260 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.