The StrToDate function fails with some FormatSettings.ShortDateFormat.
Original Reporter info from Mantis: devEric69
-
Reporter name: devEric69
Original Reporter info from Mantis: devEric69
- Reporter name: devEric69
Description:
(more info: GNU debugger GDB)
- The StrToDate function works well with a FormatSettings.ShortDateFormat='yyyy/mm/dd'.
- But the StrToDate function fails with a FormatSettings.ShortDateFormat='yyyyy-mm-dd'.
The documentation ( https://www.freepascal.org/docs-html/rtl/sysutils/strtodate.html ) does not talk about restrictions on the characters that can be used, in FormatSettings.ShortDateFormat.
Steps to reproduce:
A project to test and reproduce the error is attached.
Mantis conversion info:
- Mantis ID: 36922
- OS: Windows 7
- OS Build: 32 bits (win32)
- Build: Laz. 2.0.2 rev. 60954; fpc 3.0.4
- Platform: i386
- Version: 3.0.4
- Monitored by: » devEric69 (devEric69)