re-fetching the circ to get the local timezone into the circ object
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Sep 2006 18:15:17 +0000 (18:15 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Sep 2006 18:15:17 +0000 (18:15 +0000)
this is basically an easy way to solve the lack of proper date-time
parsing on the client end for now.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@6120 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index a57450a..1ab03e0 100644 (file)
@@ -828,6 +828,9 @@ sub do_checkout {
        return $self->bail_on_events($self->editor->event)
                unless $self->editor->create_action_circulation($self->circ);
 
+       # refresh the circ to force local time zone for now
+       $self->circ($self->editor->retrieve_action_circulation($self->circ->id));
+
        $self->copy->status(OILS_COPY_STATUS_CHECKED_OUT);
        $self->update_copy;
        return if $self->bail_out;