converting time-interval to text-interval
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Jul 2008 01:34:39 +0000 (01:34 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Jul 2008 01:34:39 +0000 (01:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9953 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index e77eefc..015d4bc 100644 (file)
@@ -570,7 +570,10 @@ sub generate_fines {
        
                        my $due = $due_dt->epoch;
                        my $now = time;
-                       my $fine_interval = interval_to_seconds( $c->fine_interval );
+
+                       my $fine_interval = $c->fine_interval;
+            $fine_interval =~ s/(\d{2}):(\d{2}):(\d{2})/$1 h $2 m $3 s/o;
+                       $fine_interval = interval_to_seconds( $fine_interval );
        
                        if ( interval_to_seconds( $c->fine_interval ) >= interval_to_seconds('1d') ) {  
                                my $tz_offset_s = 0;