Backport of r16987: Patch from John Craig providing a saner timestamp cleansing setup...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Jul 2010 19:58:48 +0000 (19:58 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Jul 2010 19:58:48 +0000 (19:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@16989 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ.pm

index bd451d1..b5c324b 100644 (file)
@@ -311,8 +311,11 @@ sub set_circ_claims_returned {
         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;
     }