[geeklog-cvs] geeklog: Suppress possible warnings about the timezone setting b...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Sep 20 04:50:27 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b973949caecc
changeset: 7329:b973949caecc
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Sep 20 09:46:54 2009 +0200
description:
Suppress possible warnings about the timezone setting before we had a chance to set it

diffstat:

 public_html/lib-common.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 01eed07e51e9 -r b973949caecc public_html/lib-common.php
--- a/public_html/lib-common.php	Sat Sep 19 22:42:31 2009 +0200
+++ b/public_html/lib-common.php	Sun Sep 20 09:46:54 2009 +0200
@@ -1984,7 +1984,7 @@
         $logentry = str_replace( array( '<?', '?>' ), array( '(@', '@)' ),
                                  $logentry );
 
-        $timestamp = strftime( '%c' );
+        $timestamp = @strftime( '%c' );
 
         if (!isset($_CONF['path_layout']) &&
                 (($actionid == 2) || empty($actionid))) {
@@ -2066,7 +2066,7 @@
         $logentry = str_replace( array( '<?', '?>' ), array( '(@', '@)' ),
                                  $logentry );
 
-        $timestamp = strftime( '%c' );
+        $timestamp = @strftime( '%c' );
         $logfile = $_CONF['path_log'] . 'access.log';
 
         if( !$file = fopen( $logfile, 'a' ))



More information about the geeklog-cvs mailing list