X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_port.cgi;h=58702eb842bb0e27b23bfacf5e3746e0b0e1ba95;hb=998b32d356338772484814a477d9efb159206b8d;hp=24717a761c0f04dab7a6ed93cd132baf3cfeae20;hpb=aab97b9a31aee4b5b7beeddee17e46694224121c;p=freeside.git
diff --git a/httemplate/view/svc_port.cgi b/httemplate/view/svc_port.cgi
index 24717a761..58702eb84 100644
--- a/httemplate/view/svc_port.cgi
+++ b/httemplate/view/svc_port.cgi
@@ -42,9 +42,16 @@ my $html_foot = sub {
my $url = $nms->port_graphs_link($svc_port->serviceid);
my $link = $url ? qq(Torrus Graphs
) : '';
- if($start && $end) {
- $graph = "
";
+ if ( $start && $end ) {
+ my($s, $e) = ($start, $end);
+ if ( $date_format eq '%d/%m/%Y' ) {
+ $start =~ /^\s*(\d+)\D+(\d+)\D+(\d+)\s*$/ and $s = "$2/$1/$3";
+ $end =~ /^\s*(\d+)\D+(\d+)\D+(\d+)\s*$/ and $e = "$2/$1/$3";
+ }
+ $graph = "
";
}
return '