mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 12:09:14 +02:00
ibconnection:fixed rounding problem in timestamp
git-svn-id: trunk@24225 -
This commit is contained in:
parent
c3f8086598
commit
b470db3085
@ -1300,7 +1300,7 @@ begin
|
|||||||
isc_encode_timestamp(@CTime, PISC_TIMESTAMP(CurrBuff));
|
isc_encode_timestamp(@CTime, PISC_TIMESTAMP(CurrBuff));
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
PISC_TIMESTAMP(CurrBuff)^.timestamp_date := Trunc(PTime) + IBDateOffset;
|
PISC_TIMESTAMP(CurrBuff)^.timestamp_date := Trunc(PTime) + IBDateOffset;
|
||||||
PISC_TIMESTAMP(CurrBuff)^.timestamp_time := Trunc(abs(Frac(PTime)) * IBTimeFractionsPerDay);
|
PISC_TIMESTAMP(CurrBuff)^.timestamp_time := Round(abs(Frac(PTime)) * IBTimeFractionsPerDay);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user