Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FpGetTimeOfDay gives no timezone
#1
I try to use Indy objects for sending e-mail in a Linux system (Debian 9, Lazarus 2.0.0.RC3, Indy 10).
The time of the message received by the recepients is wrong. I debuged what Indy does and it uses FpGetTimeOfDay to format an internet datetime string, e.g. in LocalDateTimeToGMT(), ultimately using OffsetFromUTC. According to the manual of GetTimeOfDay (http://man7.org/linux/man-pages/man2/get...day.2.html) the timezone parameter is obsolate and always returns 0 in Linux. This is indeed what I see.
Is there a workaround known, or shall I try to fix it myself (rewriting OffsetFromUTC in IdGlobal)?
Thanks,
Reply


Messages In This Thread
FpGetTimeOfDay gives no timezone - by jollytall - 01-04-2019, 03:59 PM
RE: FpGetTimeOfDay gives no timezone - by rlebeau - 01-06-2019, 08:00 PM
RE: FpGetTimeOfDay gives no timezone - by rlebeau - 01-14-2019, 09:15 PM
RE: FpGetTimeOfDay gives no timezone - by rlebeau - 01-15-2019, 06:22 PM
RE: FpGetTimeOfDay gives no timezone - by rlebeau - 01-19-2019, 01:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)