* Fix DateTimeToUnix, needs trunc instead of round (see bug ID #30697)

git-svn-id: trunk@34983 -
This commit is contained in:
michael 2016-11-27 13:07:31 +00:00
parent 48fbd569fd
commit 783f53d3a7

View File

@ -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;