瀏覽代碼

* reverted r13949 because it's unnecessary test

git-svn-id: trunk@13954 -
ivost 16 年之前
父節點
當前提交
243e0ff3b5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/objpas/dateutil.inc

+ 1 - 1
rtl/objpas/dateutil.inc

@@ -1857,7 +1857,7 @@ Function CompareDate(const A, B: TDateTime): TValueRelationship;
 begin
   If SameDate(A,B) then
     Result:=EQualsValue
-  else if Trunc(A)<Trunc(B) then
+  else if A<B then
     Result:=LessThanValue
   else
     Result:=GreaterThanValue;