在IIS 6.0中更改默认区域设置 [英] Change Default Locale in IIS 6.0
问题描述
我有一个由英国托管公司托管的托管VPS,由于某种原因设置为美国设置。事实上,直到最近,区域设置还是英国 - 美国。我已经更正了区域设置,但我的应用程序仍然使用错误的日期格式。请参阅:
I've got a hosted VPS hosted by a UK hosting company that for some reason is set to US settings. In fact, until recently, the regional settings were 'English - United States'. I've corrected the regional settings, but my application is still working with the wrong date format. See:
http:// www。 albaassoc.com/events/listevents.aspx
默认日期应该是当前日期+ 3个月,但正如您所见,dd和MM字段被交换。注意:AJAX日历扩展器手动设置为dd / MM / yyyy,这就是为什么日历pop认为我们感兴趣的是6月/ 7月而不是1月!
The default dates are supposed to be the current date to the date + 3 months, but as you can see, the dd and MM fields are swapped. Note: the AJAX calendar extender is manually set to dd/MM/yyyy so that is why the calendar pop thinks we are interested in June/July rather than January!
I知道有多种方法可以设置页面或应用程序来使用特定的语言环境,但我宁愿采用全局方法。
I know there are various ways to set a page or an application to use a particular locale, but I'd rather go for a global approach.
是否可以重新将IIS配置为在不同的语言环境中工作,如果没有,我可以调整machine.config以便它只进行一次更改吗?
Is it possible to re-configure IIS to work in a different locale, or if not, can I tweak machine.config so that it is a once-only change?
我有一张票与主持人打开,但我不会屏住呼吸 - 他们不想重新安装IIS ...
I've got a ticket open with the host but I'm not going to hold my breath - they aren't going to want to reinstall IIS...
提前致谢。
推荐答案
通过全球化元素,您可以为站点(通过web.config)或整个机器(通过machine.config)设置文化和uiculture。
Via the globalization element, you can set the culture and uiculture for a site (via web.config) or the entire machine (via machine.config).
这篇关于在IIS 6.0中更改默认区域设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!