c# - Chilkat EML Daylight Saving time issue -
i using chilkat email .net version create eml facing issues of timezone, please find below code
// daylighttime object current year. uncleardate = new datetime(1999, 3, 28, 01, 00, 00); daylighttime daylight = localzone.getdaylightchanges(currentyear); var datetimeoffset = new datetimeoffset(uncleardate, daylight.delta); uncleardate = datetimeoffset.utcdatetime; chilkat.email email = new chilkat.email(); email.subject = "test date"; email.localdate = uncleardate; email.saveeml(@"c:\temp\eml1.eml"); and scheme timezone (utc) dublin, edinburgh, lisbon, london
how can actual date (uncleardate var value) in eml file because each time run application , open mail service in thunderbird, time 2 instead of 1 am.
thanks , regards, haseena
try
email.emaildate = uncleardate; the emaildate property stores date , time in utc/gmt standard. localdate property used , set local date , time. since uncleardate in utc, might not best set locadate
c# timezone chilkat
No comments:
Post a Comment