A new server has emerged: in an ASP program, the Call function now () is always displayed in the form of "2009-07-12 08:12:56", which always shows "morning" and "PM", and the resolution process and the Final solution are as follows:
- This shows, generally because the server is so set, first look at the time format: directly double-click the task bar in time, in the pop-up "time and date" in the morning really shows the word, then enter the next step to set;
- Open the Control Panel, select Regional and Language Options, select Custom in Regional Options, select the Time tab, set the time format to "H:MM:SS"-24-hour time, empty the following AM symbol and PM symbol values, and click OK to save the settings;
- At this point again open "time and date", the time has not shown the words of the morning and afternoon, into the next test;
- After restarting IIS, execute ASP function now (), the result let me be very disappointed, or show big "Afternoon" two words, that is not the problem, should be not using the system locale time;
- Force ASP time to use the time format inside the locale by using the following method: Open Registry Editor, enter HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\, set up OleAut, under which the name " Varconversionlocalesetting "DWORD value, set data to 2, exit Registry Editor after Setup completes;
- After restarting IIS, test the ASP function again now (), it has been successful to no longer show the damn "Morning" "Afternoon" words.