OSDN Git Service

スレ建て日時の取得でStrToInt64からStrToInt64Defに変更
authorh677 <h677>
Wed, 7 Jul 2004 13:56:18 +0000 (13:56 +0000)
committerh677 <h677>
Wed, 7 Jul 2004 13:56:18 +0000 (13:56 +0000)
BoardGroup.pas

index 763e7fe..7c818d6 100644 (file)
@@ -1753,9 +1753,8 @@ begin
                        if ( Length(tmp) = 9) and ( tmp[1] = '0' ) then
                                Insert('1', tmp, 1);
 
-
-                       unixtime := StrToInt64(tmp);
-               Result := UnixToDateTime(unixtime) + OffsetFromUTC;
+                       unixtime := StrToInt64Def(tmp, ZERO_DATE);
+                       Result := UnixToDateTime(unixtime) + OffsetFromUTC;
                        if GikoSys.Setting.FutureThread then begin
                        if CompareDateTime(Result, Now) = 1 then
                        Result := ZERO_DATE;