[open-ils-commits] r9952 -
branches/rel_1_2_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 1 21:15:39 EDT 2008
Author: miker
Date: 2008-07-01 21:15:38 -0400 (Tue, 01 Jul 2008)
New Revision: 9952
Modified:
branches/rel_1_2_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
converting time-interval to text-interval
Modified: branches/rel_1_2_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- branches/rel_1_2_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2008-07-02 01:15:26 UTC (rev 9951)
+++ branches/rel_1_2_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2008-07-02 01:15:38 UTC (rev 9952)
@@ -535,8 +535,11 @@
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;
if ($due_dt->strftime('%z') =~ /(-|\+)(\d{2}):?(\d{2})/) {
More information about the open-ils-commits
mailing list