]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed: Bug [ 975059 ] Timezone Plugin Runtime Error
authoreldy <>
Sun, 11 Jul 2004 10:44:41 +0000 (10:44 +0000)
committereldy <>
Sun, 11 Jul 2004 10:44:41 +0000 (10:44 +0000)
wwwroot/cgi-bin/plugins/timezone.pm

index 3d488000b205ca477eed77b192c94bd6166660b4..1fc71a6e2d78ccca271d8398ea25b65d11ce6b1a 100644 (file)
@@ -63,7 +63,7 @@ sub Init_timezone {
 #-----------------------------------------------------------------------------
 sub ChangeTime_timezone {
        my $dateparts=shift;
-       my ($nsec,$nmin,$nhour,$nmday,$nmon,$nyear,$nwday) = localtime(Time::Local::timelocal(@$dateparts[5], @$dateparts[4], @$dateparts[3], @$dateparts[0], @$dateparts[1]-1, @$dateparts[2]-1900) + $PluginTimeZoneSeconds);
+       my ($nsec,$nmin,$nhour,$nmday,$nmon,$nyear,$nwday) = localtime(Time::Local::timelocal(int(@$dateparts[5]), int(@$dateparts[4]), int(@$dateparts[3]), int(@$dateparts[0]), int(@$dateparts[1])-1, int(@$dateparts[2])-1900) + $PluginTimeZoneSeconds);
        return ($nmday, $nmon+1, $nyear+1900, $nhour, $nmin, $nsec);
 }