Jeg har en ISS 5 server, hvis datotidsformat er sat til USA standard... Spiller fint, når jeg requester DATE() så spytter den MM/DD/YY tilbage
Dog, pga et eller andet, som jeg ikke ved hvorfor, så begynder efter et ikke rytmisk tid at spytte DD/MM/YY tilbage når jeg requester DATE().
Nogle der kan hjælper med at forklare hvorfor den laver disse skift? og hvordan jeg kan undgå dem?
Jeg har en mistanke om at hvis man logger på serveren lokalt, så ændre den tidsformattet til det, den der nu logger på har sat det til. Hvis dette er tilfældet, hvordan undgår jeg så at den default jeg har sat bliver ændret?
Okey, Jeg er normalt ellers MS fan, men her blev jeg ret skuffet:
Løsning er: Inset i Regedt32 (Regedit): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLEAUT VarConversionLocaleSetting = 0,1,2 (DWORD) HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\ SetVarConversionLocaleSetting = 0,1,2 (DWORD) Jeg sat variablerne til 2 og har ikke haft problemet siden.
0 - Default behavior as it exists right now. This format is completely random. It is based on the last user or process that set the cache.
1. Format is based on the current identity of the thread requesting these values. This is based on the identity of the thread that makes the call to the OLEAUT32.dll. In the case of IIS, it is the Authenticating User profile settings (since IIS impersonates the authenticating user by default). If the Authenticating user's profile doesn't exist/ or is not loaded into the registry, it defaults to System Default settings from the following registry hive.
2 - Format is forced to use the system default regional settings. The system default settings are set for a computer at reboot. The default system settings can be modified by clicking Set Default... in the Regional Settings tool in Control Panel. You can then choose a new locale to be the default locale, and you should then restart your computer. In this case, the date format is not read from the registry but from the Locale.nls file for that locale.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.