mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 23:09:08 +02:00
* Fix StrToDate incompatibility with delphi in case of trailing whitespace
git-svn-id: trunk@27745 -
This commit is contained in:
parent
2075bf157e
commit
47fd732236
@ -371,6 +371,8 @@ var
|
|||||||
YearMoreThenTwoDigits : boolean;
|
YearMoreThenTwoDigits : boolean;
|
||||||
begin
|
begin
|
||||||
ErrorMsg:=''; Result:=0;
|
ErrorMsg:=''; Result:=0;
|
||||||
|
While (Len>0) and (S[Len-1] in [' ',#8,#9,#10,#12,#13]) do
|
||||||
|
Dec(len);
|
||||||
if (Len=0) then
|
if (Len=0) then
|
||||||
begin
|
begin
|
||||||
FixErrorMsg(SInvalidDateFormat,'');
|
FixErrorMsg(SInvalidDateFormat,'');
|
||||||
|
Loading…
Reference in New Issue
Block a user