<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Incorrect time in emails sent from NetXMS]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">A strange thing we've been having for quite a while is that mails generated by NetXMS show the wrong timestamp:<br />
For example, an event that occurs at 8:46, will show as if it was sent at 9:46 (but will arrive at 8:46).</p>
<p dir="auto">I'm in CET (UTC+1), but during the summer, we have CEST. (UTC+2) I did some research as to what was causing this strange issue, and found the following in the header of the e-mail:<br />
Received: ... Wed, 1 Aug 2012 08:46:02 +0200<br />
Date: Wed, 1 Aug 2012 08:46:02 +0100<br />
We have v1.2.0 running on a 32bit Windows 2003 server, time zone is set to GMT+1 with DST enabled.</p>
<p dir="auto">I traced this back to server/core/email.cpp, line 273 to 277. The neccessary time zone information is collected via GetTimeZoneInformation, but daylight savings does not seem to be taken into account. As far as I understand, the return value of GetTimeZoneInformation can be used to determine if standardBias or DaylightBias should be taken into account (<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724421%28v=vs.85%29.aspx" rel="nofollow ugc">http://msdn.microsoft.com/en-us/library/windows/desktop/ms724421(v=vs.85).aspx</a> )</p>
]]></description><link>https://forum.netxms.org/topic/1855/incorrect-time-in-emails-sent-from-netxms</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 20:44:01 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1855.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Aug 2012 08:14:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Incorrect time in emails sent from NetXMS on Thu, 02 Aug 2012 10:35:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Yes, you are right. When I read GetTimeZoneInformation description, I had thought that Bias field contains current bias, calculated accordingly to DST. I have fixed it already, next build will contain correct code. Thank you for digging it out!</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/8099</link><guid isPermaLink="true">https://forum.netxms.org/post/8099</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 02 Aug 2012 10:35:18 GMT</pubDate></item></channel></rss>