mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 20:29: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));
|
||||
{$ELSE}
|
||||
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}
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user