|
From: <rd...@us...> - 2010-08-28 22:51:42
|
Revision: 2018
http://digir.svn.sourceforge.net/digir/?rev=2018&view=rev
Author: rdg
Date: 2010-08-28 22:51:36 +0000 (Sat, 28 Aug 2010)
Log Message:
-----------
New timezone setting.
Modified Paths:
--------------
tapirlink/trunk/ChangeLog.txt
tapirlink/trunk/admin/check.php
tapirlink/trunk/www/localconfig_dist.php
Modified: tapirlink/trunk/ChangeLog.txt
===================================================================
--- tapirlink/trunk/ChangeLog.txt 2010-08-16 11:58:04 UTC (rev 2017)
+++ tapirlink/trunk/ChangeLog.txt 2010-08-28 22:51:36 UTC (rev 2018)
@@ -4,7 +4,8 @@
* Resources can now be configured to reject custom output models.
* Concepts are now automatically mapped by default.
- * New configuration to specify accepted domains for remote file retrieval.
+ * New configuration to specify accepted domains for remote file retrieval.
+ * New timezone setting.
Release 0.7.0 (2009-03-21)
--------------------------
Modified: tapirlink/trunk/admin/check.php
===================================================================
--- tapirlink/trunk/admin/check.php 2010-08-16 11:58:04 UTC (rev 2017)
+++ tapirlink/trunk/admin/check.php 2010-08-28 22:51:36 UTC (rev 2018)
@@ -233,6 +233,26 @@
}
/////////////////////////////////////////////////
+// Check timezone setting
+
+echo "\n<h3>Checking timezone configuration...</h3>\n";
+flush();
+
+$old_track = ini_set( 'track_errors', '1' );
+$old_php_errormsg = $php_errormsg;
+$tz = @date_default_timezone_get();
+
+if ( $php_errormsg == $old_php_errormsg )
+{
+ echo 'OK<br />';
+}
+else
+{
+ echo '<b>Warning:</b> Timezone not properly defined. You should either set the \'date.timezone\' option in your PHP configuration file (php.ini) file, or enable the line with a call to the \'date_default_timezone_set\' function in your localconfig.php file inside the \'www\' directory (create the file as a copy of localconfig_dist.php if you don\'t have one yet).<br />';
+}
+ini_set( 'track_errors', $old_track );
+
+/////////////////////////////////////////////////
// Check PHP configuration
echo "\n<h3>Checking PHP configuration...</h3>\n";
Modified: tapirlink/trunk/www/localconfig_dist.php
===================================================================
--- tapirlink/trunk/www/localconfig_dist.php 2010-08-16 11:58:04 UTC (rev 2017)
+++ tapirlink/trunk/www/localconfig_dist.php 2010-08-28 22:51:36 UTC (rev 2018)
@@ -16,6 +16,11 @@
*/
/**
+ * Default timezone setting. Check http://www.php.net/manual/en/timezones.php
+ * for the available options */
+//date_default_timezone_set('America/Sao_Paulo');
+
+/**
* Location of the provider configuration files. You can change this to a
* location anywhere on your system but remember that it must be readable
* and writable by the php application. It is ok, and actually preferable to
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|