Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Indy 10 Offset from UTC problem
| Subject: | Indy 10 Offset from UTC problem |
| Posted by: | owens.magg..@gmail.com |
| Date: | 11 Dec 2006 13:08:41 |
I am using Indy 10.0.52 with Delphi 2006, with a Win32 project. Every
message I send comes out with an incorrect Time zone of +0000, instead
of the correct time zone for where I am, -0500.
I tracked this down to TIdSysVCL.OffsetFromUTC: TIdDateTimeBase, in the
unit IdSysVCL.pas. This function always returns zero.I downloaded the
latest development source (which, alas, I was unable to install), but
that has the same code in it.
I noticed that IdGlobalProtocols.pas has a OffsetFromUTC function which
appears to have the correct code.
I have two questions:
1. Can anyone suggest a way I can get the function in IdGlobalProtocols
to be called, or should I just modify the source in IdSysVCL?
2. WHY does this function always return zero?
Thanks!