Changing Time Zone in Email Preview

We are currently utilizing your software for generating PDF previews from emails and have encountered an issue that we would like to address with your assistance.

Issue Description: When generating a PDF preview from an email, our system automatically adjusts the time value displayed upon opening the email. Docunut appears to perform a similar adjustment; however, the time value is always set to UTC+0. This results in an incorrect time value in the generated PDF preview for the customer, as we do not have the capability to provide Docunut with a specific time zone.

Request: To resolve this issue, we kindly request the provision of a parameter or feature that allows us to specify a particular time zone during the PDF preview generation process. This is crucial for our workflows, as accurate time representation in documents is important for our clients.

We would appreciate it if you could inform us whether such a feature currently exists, is in the pipeline, or if there is a possibility of developing it to meet our specific needs.

Thank you in advance for your support and we look forward to your response regarding this matter.

Best regards,
Sven Haagmann
Solution Developer
Simova GmbH

@shaagmannSimova,

After consulting with our development team, we have identified a solution to address your requirements. We will introduce a new TimeSpan property that will allow you to specify the UTC offset for email file dates. This property will define the time zone difference between the local time and UTC, ensuring that the time values displayed in your generated PDF previews align correctly with your intended time zone.

Here’s an example of how you will be able to utilize this TimeSpan property:

Original document with UTC 0

After setting UTC-3:00:

Please let us know if this solution meets your needs. Additionally, could you please provide us with a sample file so that we can ensure the functionality aligns perfectly with your requirements? Furthermore, it would be helpful to know the timezone setting of your server to ensure accurate implementation.

@gabriel.vega,

thanks for the really quick reply. That looks very promising and should be exactly what was missing.

I see no reason to send them another test file as they are mostly simple .msg files that you get from Outlook.

When can I expect a release of the solution so that we can update?

@shaagmannSimova,

Thank you for your message. The next release is not yet finished, so we cannot provide specific details about its content at this time.

In this post, I will let you know when the version that includes this enhancement is released so that you can perform the update.

We appreciate your patience and feedback!

1 Like

@shaagmannSimova,

We are pleased to inform you that a new version of Doconut has been released that adds a new property TimeZoneOffset in EmailConfig.

The TimeZoneOffset property represents the time difference between the local time and Coordinated Universal Time (UTC).

Example of use:

EmailConfig config = new EmailConfig();
config.TimeZoneOffset = new TimeSpan(-5, 0, 0); // Set the offset to UTC-5 hours

Feel free to reach out if you have any further questions or encounter any other issues.