Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Bug fix for indy10.1.5
| Subject: | Bug fix for indy10.1.5 |
| Posted by: | "Huang Xiaobin" (hxbtoug..@yahoo.com.cn) |
| Date: | Tue, 7 Mar 2006 20:11:31 |
in the IdDayTimeServer.pas, the following procedure
function TIdDayTimeServer.DoExecute(AContext:TIdContext ): boolean;
begin
result := true;
with AContext.Connection do begin
Writeln(Sys.FormatDateTime('dddd, mmmm dd, yyyy hh:nn:ss', Sys.Now) +
'-' + FTimeZone); {Do not Localize}
Disconnect;
end;
end;
should be corrected as:
function TIdDayTimeServer.DoExecute(AContext:TIdContext ): boolean;
begin
result := true;
with AContext.Connection do begin
IOHandler.Writeln(Sys.FormatDateTime('dddd, mmmm dd, yyyy hh:nn:ss',
Sys.Now) + '-' + FTimeZone); {Do not Localize}
Disconnect;
end;
end;
^_^ a minor bug