Item.SubItems[ idx ] := FormatDateTime('yyyy/mm/dd hh:mm:ss', Thread.LastModified);
gbcVigor:
begin
- if (Thread.AgeSage <> gasArch) then begin
- spanday := DaySpan(Sort.GetSortDate, Thread.CreateDate);
- end else begin
- spanday := DaySpan(Thread.LastModified, Thread.CreateDate);
- end;
- if (spanday > 0) then begin
- Item.SubItems[ idx ] := Format('%f', [Thread.AllResCount / spanday]);
+ if (Thread.CreateDate <> ZERO_DATE) then begin
+ if (Thread.AgeSage <> gasArch) then begin
+ spanday := DaySpan(Sort.GetSortDate, Thread.CreateDate);
+ end else begin
+ spanday := DaySpan(Thread.LastModified, Thread.CreateDate);
+ end;
+ if (spanday > 0) then begin
+ Item.SubItems[ idx ] := Format('%f', [Thread.AllResCount / spanday]);
+ end else begin
+ Item.SubItems[ idx ] := '';
+ end;
end else begin
Item.SubItems[ idx ] := '';
end;
-
end;
end;
Inc( idx );
Item.SubItems[ idx ] := '';
gbcVigor:
begin
- if (Thread.AgeSage <> gasArch) then begin
- spanday := DaySpan(Sort.GetSortDate, Thread.CreateDate);
- end else begin
- spanday := DaySpan(Thread.LastModified, Thread.CreateDate);
- end;
+ if (Thread.CreateDate <> ZERO_DATE) then begin
+ if (Thread.AgeSage <> gasArch) then begin
+ spanday := DaySpan(Sort.GetSortDate, Thread.CreateDate);
+ end else begin
+ spanday := DaySpan(Thread.LastModified, Thread.CreateDate);
+ end;
- if (spanday > 0) then begin
- Item.SubItems[ idx ] := Format('%f', [Thread.AllResCount / spanday]);
+ if (spanday > 0) then begin
+ Item.SubItems[ idx ] := Format('%f', [Thread.AllResCount / spanday]);
+ end else begin
+ Item.SubItems[ idx ] := '';
+ end;
end else begin
Item.SubItems[ idx ] := '';
end;
-
end;
else
Item.SubItems[ idx ] := '';