[open-ils-commits] r16900 - branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jul 9 12:39:14 EDT 2010


Author: miker
Date: 2010-07-09 12:39:10 -0400 (Fri, 09 Jul 2010)
New Revision: 16900

Modified:
   branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm
Log:
Patch from James Fournie to address backdating timestamp format error

Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm	2010-07-09 15:42:54 UTC (rev 16899)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm	2010-07-09 16:39:10 UTC (rev 16900)
@@ -312,7 +312,7 @@
         $backdate = $new_date->ymd . 'T' . $original_date->strftime('%T%z');
 
         # make it look like the circ stopped at the cliams returned time
-        $circ->stop_fines_time($backdate);
+        $circ->stop_fines_time(clense_ISO8601($backdate));
         my $evt = OpenILS::Application::Circ::CircCommon->void_overdues($e, $circ, $backdate);
         return $evt if $evt;
     }
@@ -351,7 +351,7 @@
     if (!(interval_to_seconds($circ->duration) % 86400)) { # duration is divisible by days
         my $original_date = DateTime::Format::ISO8601->new->parse_datetime(clense_ISO8601($circ->due_date));
         my $new_date = DateTime::Format::ISO8601->new->parse_datetime($date);
-        $date = $new_date->ymd . 'T' . $original_date->strftime('%T%z');
+        $date = clense_ISO8601($new_date->ymd . 'T' . $original_date->strftime('%T%z'));
     }
 
 	$circ->due_date($date);



More information about the open-ils-commits mailing list