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.
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.
We then went into registry and update the appropriate formats under HKEY_USERS/.default/control panel/international.
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.
It turns out that in addition to
HKEY_USERS/*/Control Panel/international, there is a setting for non-unicode programs. It can be found underHKLM/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.
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.