[freeside-commits] freeside/httemplate/edit/process rate_time.cgi, 1.2, 1.3
Mark Wells
mark at wavetail.420.am
Thu Sep 23 18:04:09 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv18138/httemplate/edit/process
Modified Files:
rate_time.cgi
Log Message:
fix display of 12:00 hour in time intervals
Index: rate_time.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/rate_time.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- rate_time.cgi 22 Jul 2010 00:11:56 -0000 1.2
+++ rate_time.cgi 24 Sep 2010 01:04:07 -0000 1.3
@@ -4,7 +4,6 @@
% } else {
<% $cgi->redirect(popurl(3). "browse/rate_time.html" ) %>
% }
-%# dumper_html(\%vars, \%old_ints, {$rate_time->intervals}) %>
<%init>
my $error = '';
die "access denied"
@@ -87,7 +86,7 @@
sub l2wtime {
my ($d, $h, $m, $a) = @_;
- $h += 24*$d + 12*$a;
+ $h = ($h % 12) + 24*$d + 12*$a;
$m += 60*$h;
return 60*$m
}
More information about the freeside-commits
mailing list