DateTimeToString bugs
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
DateTimeToString seems to have problems with certain format strings.
The program below returns the following string:
-01-24 16:01:50
at the real date/time 2005-01-24 16:11:50.
Delphi returns a sensible string.
Two problems:
- if the year specifier is not exactly YYYY or YY it either returns nothing or a YYYY string (if only Y). Delphi: if there are one or two Y then it gives the YY format, otherwise the YYYY format
- the second MM is interpreted in a wrong way, e.g. it always returns the month, not the minute
Additional information:
Reporter: Thomas Schatzl
EMail:
Mantis conversion info:
- Mantis ID: 5577
- OS: Win32
- Version: 1.9.7
- Fixed in version: 1.9.9