|
From: <be...@us...> - 2012-03-14 20:48:54
|
Revision: 9132
http://xoops.svn.sourceforge.net/xoops/?rev=9132&view=rev
Author: beckmi
Date: 2012-03-14 20:48:48 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
Adding check for local timezone (by XavierS)
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt
XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php
Modified: XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-14 18:44:26 UTC (rev 9131)
+++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-14 20:48:48 UTC (rev 9132)
@@ -1,6 +1,12 @@
XOOPS 2.5.x Changelog (Language changes: see: /docs/lang_diff.txt)
===============================
+2011/03/14: Version 2.5.5 RC
+===============================
+Bugfixes:
+ - adding missing check for local timezone (XavierS)
+
+===============================
2011/02/19: Version 2.5.5 Beta
===============================
Security fixes:
Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php 2012-03-14 18:44:26 UTC (rev 9131)
+++ XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php 2012-03-14 20:48:48 UTC (rev 9132)
@@ -128,6 +128,13 @@
trigger_error('File Path Error: ' . 'var/configs/xoopsconfig.php' . ' does not exist.');
}
+//check if user set a local timezone
+$xoops_server_timezone="Etc/GMT";
+if ($xoopsConfig["server_TZ"]>0) {
+ $xoops_server_timezone .="+".$xoopsConfig["server_TZ"]; } else{
+ $xoops_server_timezone .=$xoopsConfig["server_TZ"]; } date_default_timezone_set($xoops_server_timezone);
+
+
/**
* Enable Gzip compression, r
* Requires configs loaded and should go before any output
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|