converting time-interval to text-interval
[Evergreen.git] / 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;