I am using Chilkat Email .net version to create eml but i am facing issues of timezone, Please find the below code: 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");
We set both email.LocaDate and email.EmailDate, but resulting the same.
My system timezone is (UTC) Dublin, Edinburgh, Lisbon, London
1) How can i get the actual date (unclearDate var value) in eml file because each time i run the application and open mail in thunderbird, time is 11.41 AM instead of 10.41 AM.
When we open the eml in Thunderbird. Its time change to be 1 hour ahead in Date filed i.e 11.41 AM instead of 10.41 AM, but shows correct time(10.41 AM)in HEADER MIME content of EML.
2) And how to set time zone "+0100" instead of "+0000" of date in eml while using Chilkat Email. So that it shows me time zone "+0100" as it is in Thunderbird. Please find the screen shot.
Exmple: If Original date of eml is "Mon, 24 Sep 2012 10:41:20 +0100" then, when we open it in Thunderbird or EML viewer it shows "Mon, 24 Sep 2012 10:41:20 +0000" instead of original Date Time "Mon, 24 Sep 2012 10:41:20 +0100".
We are in middle of migration, could you please help us as soon as possible.
Thanks and Regards, Mahendra