diff --git a/src/notify_email.c b/src/notify_email.c
index 62e1c486a3601f20db464b1e2083d96cc46544d3..a13b1f9ea485478565287c1a9223bf34868cfcdd 100644 (file)
--- a/src/notify_email.c
+++ b/src/notify_email.c
{
smtp_recipient_t recipient;
+ time_t tt;
struct tm timestamp_tm;
char timestamp_str[64];
(email_subject == NULL) ? DEFAULT_SMTP_SUBJECT : email_subject,
severity, n->host);
- localtime_r (&n->time, ×tamp_tm);
+ tt = CDTIME_T_TO_TIME_T (n->time);
+ localtime_r (&tt, ×tamp_tm);
strftime (timestamp_str, sizeof (timestamp_str), "%Y-%m-%d %H:%M:%S",
×tamp_tm);
timestamp_str[sizeof (timestamp_str) - 1] = '\0';