Re: Major bug in TIdDateTimeStamp

Giganews Newsgroups
Subject: Re: Major bug in TIdDateTimeStamp
Posted by:  Don (kingfi…@joesgarage.org)
Date: Sat, 31 Dec 2005

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

I can confirm this error in the current snapshot... and it appears to have
been broken for quite some time now.  I've passed the info to the Indy
developers.  Thanks for the "heads up".

Replies

None

In response to

Major bug in TIdDateTimeStamp posted by Bal√°zs Farkas on Sat, 31 Dec 2005