* Proper fix for bug ID #30697

git-svn-id: trunk@34997 -
This commit is contained in:
michael 2016-11-27 19:54:49 +00:00
parent a25ebbba3e
commit 5786182188

View File

@ -2148,8 +2148,9 @@ end;
---------------------------------------------------------------------}
Function DateTimeToUnix(const AValue: TDateTime): Int64;
begin
Result:=Trunc(DateTimeDiff(AValue,UnixEpoch)*SecsPerDay);
Result:=Round(DateTimeDiff(RecodeMillisecond(AValue,0),UnixEpoch)*SecsPerDay);
end;