Email TimeStamps and Debian
Posted: Mon Jun 25, 2018 12:13 am
This is an old problem that just seems to be skipped, so I thought I would post some old data and reaffirm against the newest version of Xeoma.
Server OS: Debian 9.4 with NTP client running and a stratus 2 source
Timezone on server: UTC-6 no daylight savings (we are daylight savings free)
Xeoma Version: 18.6.14
License: Commercial (not pro)
Brief:
Xeoma has had an issue with emailing timestamps for as long as I have used it (2016). Simply put the emailer within Xeoma has a bug that causes the emails to be marked 12 hours ago. This is a problem I have tracked down before and can reaffirm that is still exists. The problem stems from the way Xeoma uses the local time and UTC time, for the archive it uses UTC and the timezone info from the server, for emails it uses local time and the timezone data again to create the email timestamps.
Changing the Xeoma client user timezone has no effect of the email timestamps that the server sets. This setting is for archive display only.
What appears to be happening is the emailer is using the calculated Xeoma time that Xeoma uses for the archive or the local time from the system and again applying the local systems timezone data to have the affect of the emails being sent at a different time even though I can see when the emails are being processed through my email server. In my case UTC -6 for my local time and emails are 12 hrs behind local time. eg. it is 1759 local, UTC is 2359, Xeoma sends an email with a timestamp of 0559.
I have tracked this down to a simple point of programming that needs to be redressed: have the emailer use either the local time or utc plus/minus the timezone of the system, not a mix of both. There should be no time calculations required for sending an email from within Xeoma.
The Hack to fix this:
Set your servers local tzdata to UTC (GMT if you want daylight savings). Now Xeoma sends emails with the correct timestamp. Your archive will have the correct time if you set your client user time zone to your local timezone.
Comments:
Servers should be set to UTC and have the correct timezone for proper logging and file timestamps, the above method means all system local times are in UTC and not local. if using a remote log server, the time stamps will also be in UTC causing the log to show various times in the logging order. A timestamp cleanup process that adjusts the log timestamp to local time before writing to the log may be required.
All around this flaw is annoying and creates issues that just should not be there.
Server OS: Debian 9.4 with NTP client running and a stratus 2 source
Timezone on server: UTC-6 no daylight savings (we are daylight savings free)
Xeoma Version: 18.6.14
License: Commercial (not pro)
Brief:
Xeoma has had an issue with emailing timestamps for as long as I have used it (2016). Simply put the emailer within Xeoma has a bug that causes the emails to be marked 12 hours ago. This is a problem I have tracked down before and can reaffirm that is still exists. The problem stems from the way Xeoma uses the local time and UTC time, for the archive it uses UTC and the timezone info from the server, for emails it uses local time and the timezone data again to create the email timestamps.
Changing the Xeoma client user timezone has no effect of the email timestamps that the server sets. This setting is for archive display only.
What appears to be happening is the emailer is using the calculated Xeoma time that Xeoma uses for the archive or the local time from the system and again applying the local systems timezone data to have the affect of the emails being sent at a different time even though I can see when the emails are being processed through my email server. In my case UTC -6 for my local time and emails are 12 hrs behind local time. eg. it is 1759 local, UTC is 2359, Xeoma sends an email with a timestamp of 0559.
I have tracked this down to a simple point of programming that needs to be redressed: have the emailer use either the local time or utc plus/minus the timezone of the system, not a mix of both. There should be no time calculations required for sending an email from within Xeoma.
The Hack to fix this:
Set your servers local tzdata to UTC (GMT if you want daylight savings). Now Xeoma sends emails with the correct timestamp. Your archive will have the correct time if you set your client user time zone to your local timezone.
Comments:
Servers should be set to UTC and have the correct timezone for proper logging and file timestamps, the above method means all system local times are in UTC and not local. if using a remote log server, the time stamps will also be in UTC causing the log to show various times in the logging order. A timestamp cleanup process that adjusts the log timestamp to local time before writing to the log may be required.
All around this flaw is annoying and creates issues that just should not be there.