From: miker Date: Tue, 20 Jul 2010 19:56:55 +0000 (+0000) Subject: Patch from John Craig providing a saner timestamp cleansing setup for backdated circs... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9c4a570deb245a3064d8999ea1d12cbb73fee9d9;p=working%2FEvergreen.git Patch from John Craig providing a saner timestamp cleansing setup for backdated circs, 1.6 edition git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16987 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index 23e97cd26c..51438c9aca 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -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; }