Objective Grid: International date style settings ignored

Article ID: 496
Last updated: 16 Apr, 2018
Article ID: 496
Last updated: 16 Apr, 2018
Revision: 3
Views: 1558
Posted: 24 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


When using datetime control or when browsing database date fields, the international settings from the Windows Control Panel are ignored.
 


Cause


All of our samples use:
 

_tsetlocale(LC_ALL, NULL); 

to initialize the international settings. This is wrong and you should call:
 

_tsetlocale(LC_ALL, _T()); 


Action


This article was:   Helpful | Not helpful
Report an issue
Article ID: 496
Last updated: 16 Apr, 2018
Revision: 3
Views: 1558
Posted: 24 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category