Email alert date/time set to alerting device date/time

I’ve noticed that some email alerts arrive with dates and times of many days ago or worse. I think I’ve tracked this to the alerting device’s date/time being wrong and it looks like LibreNMS sets the date/time of the alerting email to that provided by the alerting device.

Given that not all monitored devices are capable of using NTP servers, can the email date/time be set to that of the server that LibreNMS is running on?

Thanks

Macsmith

Is this a datetime that’s within the body of the email or the actual email itself?

good question. Looking at the header, which is quite large, 2 excerpts below (I’ve removed my address details). The first date/time is correct but the second is wrong and Thunderbird uses the 2nd date/time to place the email further down the date/time sorted list:

.
.
.
Received: by 10… with SMTP id x23csp55479qka;
Wed, 14 Dec 2016 01:41:27 -0800 (PST)

.
.
.
Received: (from librenms@localhost)
by MYDOMAIN (8.14.4/8.14.4/Submit) id uBDDv2hI027626;
Tue, 13 Dec 2016 13:57:02 GMT

Maybe you’ve got a timezone issue, librenms is showing as GMT and the next one is PST.