Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Nov : Indy RawStrInternetToDateTime / ParseDayOfMonth range error
| Subject: | Indy RawStrInternetToDateTime / ParseDayOfMonth range error |
| Posted by: | "dk_sz" (dk_..@hotmail.com) |
| Date: | Tue, 14 Nov 2006 17:13:39 |
Is this function supposed to give range error?
I realize range error do not appear in
release builds, but still, it just seems kinda odd.
It happens *RawStrInternetToDateTime*
receive a value of "-1" (yes, that is a string)
In callstack I can see it is called from ProcessHeaders ...
FExpires := GMTToLocalDateTime(Values['Expires']);
(the "else" branch to the "if(...) <> -1" test)
The called function *GMTToLocalDateTime* calls
*RawStrInternetToDateTime* as first thing is the string isn't = ''.
best regards
Thomas Schulz