mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 17:19:33 +02:00
* Fixed TryEncodeDateTime. Adding a date and a time is not valid for dates before 1899-12-30, use ComposeDateTime instead
git-svn-id: trunk@12561 -
This commit is contained in:
parent
41a292c403
commit
d2d4aa22db
@ -1517,7 +1517,7 @@ begin
|
||||
Result:=TryEncodeDate(AYear,AMonth,ADay,AValue);
|
||||
Result:=Result and TryEncodeTime(AHour,AMinute,ASecond,Amillisecond,Tmp);
|
||||
If Result then
|
||||
Avalue:=AValue+Tmp;
|
||||
Avalue:=ComposeDateTime(AValue,Tmp);
|
||||
end;
|
||||
|
||||
{ ---------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user