--- rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-reworkDateManip.patch 2008/10/04 08:46:59 1.2 +++ rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-reworkDateManip.patch 2008/11/25 16:20:25 1.5 @@ -18,16 +18,13 @@ my $FetchmailIP = '127.0.0.200'; #Apparent Ip address of fetchmail deliveries my $WebmailIP = '127.0.0.1'; #Apparent Ip of Webmail sender my $localhost = 'localhost'; #Apparent sender for webmail -@@ -1126,8 +1125,12 @@ +@@ -1126,8 +1125,9 @@ }; $time = timelocal($sec,$min,$hour,$mday,$mon,$year) } - my $start = UnixDate( $startdate, "%s" ); - my $end = $enddate ? UnixDate( $enddate, "%s" ) : + -+ print STDOUT $startdate; -+ print STDOUT $enddate; -+ + my $start = str2time( $startdate ); + my $end = $enddate ? str2time( $enddate ) : $startdate ? $start + $secsininterval : $time;