[vhffs-dev] [368] Robots' log timestamp was one month late, hour was always to 0 |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 368
Author: gradator
Date: 2006-12-07 19:13:19 +0000 (Thu, 07 Dec 2006)
Log Message:
-----------
Robots' log timestamp was one month late, hour was always to 0
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Robots.pm
Modified: trunk/vhffs-api/src/Vhffs/Robots.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots.pm 2006-12-07 07:24:19 UTC (rev 367)
+++ trunk/vhffs-api/src/Vhffs/Robots.pm 2006-12-07 19:13:19 UTC (rev 368)
@@ -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 ) );