mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-21 01:49:08 +02:00
* Fix case for negative dates (bug ID 23464)
git-svn-id: trunk@27124 -
This commit is contained in:
parent
ed56f3c9b1
commit
f9bb91d722
@ -160,7 +160,10 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
Date:=Date+1/(msecsperday*2);
|
if Date>0 then
|
||||||
|
Date:=Date+1/(msecsperday*2)
|
||||||
|
else
|
||||||
|
Date:=Date-1/(msecsperday*2);
|
||||||
j := pred((Trunc(System.Int(Date)) + 693900) SHL 2);
|
j := pred((Trunc(System.Int(Date)) + 693900) SHL 2);
|
||||||
ly:= j DIV 146097;
|
ly:= j DIV 146097;
|
||||||
j:= j - 146097 * cardinal(ly);
|
j:= j - 146097 * cardinal(ly);
|
||||||
|
Loading…
Reference in New Issue
Block a user