Major bug in TIdDateTimeStamp

Giganews Newsgroups
Subject: Major bug in TIdDateTimeStamp
Posted by:  Bal√°zs Farkas (megas…@intro.hu)
Date: Sat, 31 Dec 2005

Hello,

I found a strange problem:

  var
    D: TIdDateTimeStamp;
  begin
    D := TIdDateTimeStamp.Create(nil);
    D.SetFromTDateTime(EncodeDate(2005, 12, 31));
    showmessage(inttostr(d.Year));

The result is '2006' for Indy 9 and 10, and '2007' for current
development snapshot.

Regards,
Balázs Farkas

Replies