From a9caf736867d5df0ff3b82c9e8500318832fa537 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 12 Nov 2015 14:50:11 -0500 Subject: Server operations need the original timestamp, but keep the pretty one for local presentation. Fixes #5250 --- config/autoconfigbackup/autoconfigbackup.php | 8 ++++---- config/autoconfigbackup/autoconfigbackup.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'config/autoconfigbackup') diff --git a/config/autoconfigbackup/autoconfigbackup.php b/config/autoconfigbackup/autoconfigbackup.php index d384e3dd..dcc7a489 100644 --- a/config/autoconfigbackup/autoconfigbackup.php +++ b/config/autoconfigbackup/autoconfigbackup.php @@ -365,7 +365,7 @@ EOF; /* Convert the time from server time to local. See #5250 */ $budate = new DateTime($tmp_array['time'], $acbtz); $budate->setTimezone($mytz); - $tmp_array['time'] = $budate->format(DATE_RFC2822); + $tmp_array['localtime'] = $budate->format(DATE_RFC2822); if ($ds_split[2] && $ds_split[0]) { $confvers[] = $tmp_array; @@ -409,16 +409,16 @@ EOF; foreach ($confvers as $cv): ?> - + - + - + diff --git a/config/autoconfigbackup/autoconfigbackup.xml b/config/autoconfigbackup/autoconfigbackup.xml index 93526a49..91da371a 100644 --- a/config/autoconfigbackup/autoconfigbackup.xml +++ b/config/autoconfigbackup/autoconfigbackup.xml @@ -43,7 +43,7 @@ Automatically backs up your pfSense configuration. All contents are encrypted before being sent to the server. Requires Gold Subscription from https://portal.pfsense.org pfSense Portal subscription AutoConfigBackup - 1.30 + 1.31 Diagnostics: Auto Configuration Backup Change /usr/local/pkg/autoconfigbackup.inc -- cgit v1.2.3