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

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 20 15:58:32 EDT 2010


Author: miker
Date: 2010-07-20 15:58:27 -0400 (Tue, 20 Jul 2010)
New Revision: 16988

Modified:
   branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm
Log:
Backport of r16987: Patch from John Craig providing a saner timestamp cleansing setup for backdated circs, 1.6 edition

Modified: branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm
===================================================================
--- branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm	2010-07-20 19:56:55 UTC (rev 16987)
+++ branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm	2010-07-20 19:58:27 UTC (rev 16988)
@@ -311,8 +311,11 @@
         my $new_date = DateTime::Format::ISO8601->new->parse_datetime($backdate);
         $backdate = $new_date->ymd . 'T' . $original_date->strftime('%T%z');
 
+        # clean it up once again; need a : in the timezone offset. E.g. -06:00 not -0600
+        $backdate = clense_ISO8601($backdate);
+
         # make it look like the circ stopped at the cliams returned time
-        $circ->stop_fines_time(clense_ISO8601($backdate));
+        $circ->stop_fines_time($backdate);
         my $evt = OpenILS::Application::Circ::CircCommon->void_overdues($e, $circ, $backdate);
         return $evt if $evt;
     }



More information about the open-ils-commits mailing list