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