|Subject:||Re: Indy 10 SMTP - DateTimeToInternetStr problem|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Fri, 28 Apr 2006|
"Martin Clarke" <mclar…@atdealernet.com.au> wrote in message
> When constructing a SMTP message (or any header for that matter)
> the Date header item does not include a UTC time offset.
> This appears to be because the OffsetFromUTC in TIdSysVCL
> is not virtual
None of the methods in the TIdSys classes are virtual. They can't be,
because no instances of the classes are every instantiated. All of the
methods are static class methods that are called though the class types, not
through pointers to class instances.
> and the OffsetFromUTC in TIdSysWin32 is not set to Override.
It doesn't have to "override" anything. When Indy is compiled for Win32,
TIdSysWin32 is used for the global 'Sys' typedef. As such, whenever Indy
calls 'Sys.OffsetFromUTC', TIdSysWin32.OffsetFromUTC() is always called
directly. At no point is TIdSysVCL.OffsetFromUTC() ever called.
Indy 10 SMTP - DateTimeToInternetStr problem posted by mclar…@atdealernet.com.au on Fri, 28 Apr 2006