[fpc-devel]StrToDateTime bug

Pavel Stingl stingp1.eti at mail.cez.cz
Wed Nov 15 13:26:07 CET 2000


Hi, I have found possible bug in SysUtils unit -
function StrToDateTime returns null date ->
this piece of code 

---
var
  D : TDateTime;
 
begin
  WriteLn(ShortDateFormat);
  D := StrToDateTime('1/1/2000');
  WriteLn(DateTimeToStr(D));
  WriteLn(DateTimeToStr(Now));
end. 
---

returns:

d/m/y
30-12-1899
15-11-2000 13:02

I'm using 1.0.2 compiler, RedHat 7.0,
what I know, this bug is in fpc 1.1 rtl too.

------------------------------------
Pavel Stingl
mailto: stingp1.eti at mail.cez.cz
------------------------------------




More information about the fpc-devel mailing list