diff options
author | Scott Ullrich <sullrich@gmail.com> | 2012-01-18 15:11:36 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2012-01-18 15:11:36 -0500 |
commit | 3b49bc2586d31f3bd25a5d09cde85e359e253cce (patch) | |
tree | 1a67b40f55b934b424903343f377783a9c67bbcf /usr/local/www | |
parent | 943994ff7dd8854622fd1068ba198badb3bd8552 (diff) | |
download | pfsense-3b49bc2586d31f3bd25a5d09cde85e359e253cce.zip pfsense-3b49bc2586d31f3bd25a5d09cde85e359e253cce.tar.gz |
Ensure timezone is set
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 5332d8e..684d531 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -1092,4 +1092,10 @@ function rule_popup($src,$srcport,$dst,$dstport){ } } +$timezone = $syscfg['timezone']; +if (!$timezone) + $timezone = "Etc/UTC"; + +date_default_timezone_set($timezone); + ?> |