[vhffs-dev] [367] Robots' log timestamp was one month late, hour was always to 0

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 367
Author:   beuss
Date:     2006-12-07 07:24:19 +0000 (Thu, 07 Dec 2006)

Log Message:
-----------
Robots' log timestamp was one month late, hour was always to 0

Modified Paths:
--------------
    branches/vhffs_4.1/vhffs-api/src/Vhffs/Robots.pm


Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Robots.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Robots.pm	2006-12-04 20:10:17 UTC (rev 366)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Robots.pm	2006-12-07 07:24:19 UTC (rev 367)
@@ -101,7 +101,7 @@
 		if( $vhffs->get_config->robots_logging == 1 )
 		{
 			my ($seconds,$minutes,$hours,$day,$month,$year) = localtime(time);
-			my $timestamp = sprintf ('[ %.4u/%.2u/%.2u %.2u:%.2u:%.2u ]',$year+1900,$month,$day,$hour,$minutes,$seconds);
+			my $timestamp = sprintf ('[ %.4u/%.2u/%.2u %.2u:%.2u:%.2u ]',$year+1900,$month + 1,$day,$hours,$minutes,$seconds);
 
 			$logfile = $vhffs->get_config->robots_logfile;
 			$logfile = LOGFILE if( ! ( defined $logfile ) );


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/