asp和iis 6.0在哪里获取其日期格式 [英] where does asp and iis 6.0 get its date format

查看:71
本文介绍了asp和iis 6.0在哪里获取其日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现有一个装有新Web服务器的泡菜.我们有一台新的Web服务器,其显示的日期与旧的Web服务器不同.

I've found a dilly of a pickle with a new web server. We have a new web server that is displaying dates differently than our old web servers.

我们正在带有Windows Server 2003的IIS 6.0上运行ASP经典网页.

We are running asp classic web pages on IIS 6.0 with windows server 2003.

我们已经以管理员身份登录并设置了适当的区域设置,然后将设置应用于当前用户和默认用户配置文件.

We have logged in as an administrator and set the regional settings as appropriate and then applied the settings to current user and default user profile.

然后我们进入注册表并在HKEY_USERS/.default/control panel/international下更新相应的格式.

We then went into registry and update the appropriate formats under HKEY_USERS/.default/control panel/international.

将我们网站的asp.net配置更新为正确的代码页和语言环境.

Update the asp.net configuration for our websites to the correct code-page and locale.

有人在其他地方可以从应用程序获取日期格式吗?

Does anyone have other places that the application could be getting date formats from?

推荐答案

我知道这不是解决问题的正确"方法.但是,该应用程序是在多年前编写的,通过计划/变更控制获得某些东西会很痛苦,并且是服务器上唯一运行的应用程序.因此,可以将服务器配置为满足该单个应用程序.除了让我发疯的是,应该与旧服务器配置相同的新服务器无法正常工作.

I know this isn't the 'proper' way to fix the issue. However, the application was written many years ago, getting something through planning/change control would be a pain, and is the only application running on the server. Thus it is okay to configure the server to cater to this single application. Besides it was driving me crazy that a new server that should be configured identically to an old server was not working.

事实证明,除了HKEY_USERS/*/Control Panel/international之外,还有一个用于非unicode程序的设置.可以在HKLM/system/currentcontrolset/control/nls/language/Default下找到.将其设置为正确的代码页,它是金色的.

It turns out that in addition to HKEY_USERS/*/Control Panel/international, there is a setting for non-unicode programs. It can be found under HKLM/system/currentcontrolset/control/nls/language/Default. Set that to the correct code page and it is golden.

另一方面,如果您不想直接修改注册表,则可以通过控制面板上的区域设置"来更新所有这些值.

On the other hand, if you prefer to not modify the registry directly, you can update all these values through the Regional settings from the control panel.

您可以通过"customize"按钮调整格式. 您可以在高级"标签下更改非Unicode程序的语言". 只需确保您选中高级"标签底部的应用于默认配置文件"即可.

You can adjust the formats through the 'customize' button. You can change the 'language for non-unicode programs' under advanced tab. Just make sure that you check the 'apply to the default profile' at the bottom of the advanced tab.

这篇关于asp和iis 6.0在哪里获取其日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆