[Lazarus] Lazarus 2.0 returning inconsistent formatted results of DateTimeToStr?
Michael Van Canneyt
michael at freepascal.org
Tue Mar 12 22:53:01 CET 2019
On Tue, 12 Mar 2019, Joe via lazarus wrote:
> The DateTimeToStr function returns somewhat inconsistent formatted
> results, depending on the operating system.
> For "DateTimeToStr (now, DefaultFormatSettings)"
> - under Windows 10 (64), I got "12-03-2019 21:35:50"
> - under Linux Mint Sarah, I got "12-3-19 21:35:50"
> - under Raspbian Stretch, i got "12-3-19 21:35:50"
> The Language Switch of the IDE, Tools -> Options ... -> General ->
> Language, was set to "German [de]".
This is normal. The operating system settings are used, not the IDE language
For Linux OS settings to be initialized correctly, you should add the
'clocale' unit to your program's uses clause.
More information about the lazarus