/[smecontribs]/rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-reworkDateManip.patch
ViewVC logotype

Diff of /rpms/smeserver-mailstats/contribs7/smeserver-mailstats-0.0.3-reworkDateManip.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by snetram, Sat Oct 4 08:46:59 2008 UTC Revision 1.3 by snetram, Sat Oct 11 23:29:50 2008 UTC
# Line 18  Line 18 
18   my $FetchmailIP = '127.0.0.200';       #Apparent Ip address of fetchmail deliveries   my $FetchmailIP = '127.0.0.200';       #Apparent Ip address of fetchmail deliveries
19   my $WebmailIP = '127.0.0.1';           #Apparent Ip of Webmail sender   my $WebmailIP = '127.0.0.1';           #Apparent Ip of Webmail sender
20   my $localhost = 'localhost';           #Apparent sender for webmail   my $localhost = 'localhost';           #Apparent sender for webmail
21  @@ -1126,8 +1125,12 @@  @@ -1126,8 +1125,9 @@
22         };         };
23         $time = timelocal($sec,$min,$hour,$mday,$mon,$year)         $time = timelocal($sec,$min,$hour,$mday,$mon,$year)
24       }       }
25  -    my $start = UnixDate( $startdate, "%s" );  -    my $start = UnixDate( $startdate, "%s" );
26  -    my $end   = $enddate ? UnixDate( $enddate,   "%s" ) :  -    my $end   = $enddate ? UnixDate( $enddate,   "%s" ) :
27  +      +    
 +    print STDOUT $startdate;  
 +    print STDOUT $enddate;  
 +  
28  +    my $start = str2time( $startdate );  +    my $start = str2time( $startdate );
29  +    my $end   = $enddate ? str2time( $enddate ) :  +    my $end   = $enddate ? str2time( $enddate ) :
30          $startdate ? $start + $secsininterval : $time;          $startdate ? $start + $secsininterval : $time;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed