summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/pkg_mgr.php6
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php6
2 files changed, 12 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 15097a6..16b3ca8 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -44,6 +44,12 @@ require_once("globals.inc");
require_once("guiconfig.inc");
require_once("pkg-utils.inc");
+$timezone = $syscfg['timezone'];
+if (!$timezone)
+ $timezone = "Etc/UTC";
+
+date_default_timezone_set($timezone);
+
/* if upgrade in progress, alert user */
if(is_subsystem_dirty('packagelock')) {
$pgtitle = array(gettext("System"),gettext("Package Manager"));
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php
index 78a3362..0905701 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -40,6 +40,12 @@
require_once("guiconfig.inc");
require_once("pkg-utils.inc");
+$timezone = $syscfg['timezone'];
+if (!$timezone)
+ $timezone = "Etc/UTC";
+
+date_default_timezone_set($timezone);
+
/* if upgrade in progress, alert user */
if(is_subsystem_dirty('packagelock')) {
$pgtitle = array(gettext("System"),gettext("Package Manager"));
OpenPOWER on IntegriCloud