[freeside-commits] freeside/FS/FS rate_time_interval.pm,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/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv18138/FS/FS
Modified Files:
rate_time_interval.pm
Log Message:
fix display of 12:00 hour in time intervals
Index: rate_time_interval.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/rate_time_interval.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- rate_time_interval.pm 22 Jul 2010 00:11:55 -0000 1.2
+++ rate_time_interval.pm 24 Sep 2010 01:04:07 -0000 1.3
@@ -158,7 +158,7 @@
return map {
sprintf('%s %02d:%02d %s',
$days[int($_/86400) % 7],
- int($_/3600) % 12,
+ (int($_/3600) % 12 || 12),
int($_/60) % 60,
(($_/3600) % 24 < 12) ? 'AM' : 'PM' )
} ( $self->stime, $self->etime );
More information about the freeside-commits
mailing list