login about faq

The help seems to indicate that only a GMT date/time can be set in Chilkat while industry standards indicate that any time zone can be set. I tried setting to another time zone but while the date/time I set showed correctly in the sent email, the time zone was stuck on GMT. Is this it or is there something wrong? Using DataFlex and version 9.5.0.

asked Jul 12 '16 at 12:59

chilkat's gravatar image

chilkat ♦♦

The EmailDateStr property returns the date/time as GMT regardless of how it appears in the Date header field. (The conversion to GMT happens automatically.)

There are at least 2 easy solutions:

  1. Call Email.GetDt() to return a CkDateTime object. Your app can then get the date/time in numerous formats from the CkDateTime API. There is a CkDateTime.GetAsRfc822(bLocal) method that can be called to get the date/time in RFC822 format. If bLocal is True/non-zero, it returns the date/time in the local machine's timezone. Otherwise it returns the GMT time.
  2. Load the EmailDateStr into a CkDateTime object and then do the same..

answered Jul 12 '16 at 13:04

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 12 '16 at 12:59

Seen: 1,523 times

Last updated: Jul 12 '16 at 13:04

powered by OSQA