Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdDateTimeStamp gives strange result
#1
I might have missed something, but tried a very simple code:

procedure TForm1.Button1Click(Sender: TObject);
  begin
  IdDateTimeStamp1.SetFromTDateTime(Now);
  memo1.lines.add(DateTimeToStr(Now));
  memo1.lines.add(IdDateTimeStamp1.AsISO8601Calendar);
  end;


and got the result:

9-7-19 12:06:56
2020-8-10T12:06:56,

i.e. the Year, the Month and the Day are all +1 compared to the real one. I tried other dates and always this offset.

Any idea?

I use Debian 9, Gnome 3.22.2, Lazarus 2.0.2., FPC 3.0.4, on 64 bit.
Reply


Messages In This Thread
IdDateTimeStamp gives strange result - by jollytall - 07-09-2019, 10:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)