Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : Invalid Date To Encode
| Subject: | Invalid Date To Encode |
| Posted by: | "Daniel Manchester" (dmanchest..@earthlink.net) |
| Date: | Mon, 7 Feb 2005 11:37:54 |
At one of my customer's sites I am getting the following error when
retrieving mail using idPop3.
EconvertError
Invalid Argument To Date Encode
If appears to be coming from the RawStrInternetToDateTime(S); line in the
idGlobalProdocols.pas.
It does not let me retrieve the message or I would give you the header of
the message. Is there any workaround for this?
I am using Delphi 7 with indy 10.52. Thanks
function GMTToLocalDateTime(S: string): TDateTime;
var {-Always returns date/time relative to GMT!! -Replaces
StrInternetToDateTime}
DateTimeOffset: TDateTime;
begin
if s = '' then
begin
// just hardcode to 0 - don't need all the work below and the spurious
timezone adjustment. GDG 20-Mar 2003
result := 0;
end
else
begin
Result := RawStrInternetToDateTime(S);