mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-07 04:50:53 +01:00
* Fix DateTimeToUnix, needs trunc instead of round (see bug ID #30697)
git-svn-id: trunk@34983 -
This commit is contained in:
parent
48fbd569fd
commit
783f53d3a7
@ -2149,7 +2149,7 @@ end;
|
||||
|
||||
Function DateTimeToUnix(const AValue: TDateTime): Int64;
|
||||
begin
|
||||
Result:=Round(DateTimeDiff(AValue,UnixEpoch)*SecsPerDay);
|
||||
Result:=Trunc(DateTimeDiff(AValue,UnixEpoch)*SecsPerDay);
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user