Actions
Bug #1034
closedtimezone settings not working in smtp notifications
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Notifications
Target version:
-
Start date:
11/23/2010
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:
Description
I have two pfsense installations 2.0-BETA4 (i386) built on Sun Nov 14 17:23:12 EST 2010
which both have the following problem:
timezone is set to Europe/Berlin (Settings->General)
date on the shell gives me the correct time & timezone:
root(1): date Tue Nov 23 14:21:13 CET 2010
But all generated smtp notifcations get a "Date:"-Header with a wrong timezone:
[...] Subject: hostx - Notification Date: Tue, 23 Nov 2010 14:22:40 -0600 [...]
The date gets generated on line 317 in /etc/inc/notices.inc:
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
When I execute the used srftime statement in a script on the shell, the generate date is ok:
<?php strftime("%a, %d %b %Y %H:%M:%S %Z");
-> Tue, 23 Nov 2010 14:27:46 CET
Actions