07-09-2019, 10:20 AM
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.
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.