my( $s, $c, $a, $i ) = @_;
my $e = new_editor(authtoken => $a);
return $e->event unless $e->checkauth;
- my $circ = $e->retrieve_action_circulation($i) or return $e->event;
+ my $circ = $e->retrieve_action_circulation($i,{no_tz => 1}) or return $e->event;
if( $e->requestor->id ne $circ->usr ) {
return $e->event unless $e->allowed('VIEW_CIRCULATIONS');
}
acn => ['record']
}
}
- ]);
+ ],{no_tz => 1});
# un-flesh for consistency
my $c = $circ->target_copy;
my $e = new_editor(xact=>1, authtoken=>$auth);
return $e->die_event unless $e->checkauth;
- my $circ = $e->retrieve_action_circulation($circ_id)
+ my $circ = $e->retrieve_action_circulation($circ_id,{no_tz => 1})
or return $e->die_event;
return $e->die_event unless $e->allowed('CIRC_OVERRIDE_DUE_DATE', $circ->circ_lib);
return $e->search_action_circulation([
{target_copy => $copyid},
{limit => $count, order_by => { circ => "xact_start DESC" }}
- ]);
+ ],{no_tz => 1});
}
order_by => { circ => 'xact_start desc' },
limit => 1
}
- ]
+ ],{no_tz => 1}
)->[0];
acn => [ qw/ record / ],
}
}
- ]
+ ],
+ {no_tz => 1}
) or return $e->event;
my $copy = $circ->target_copy;
my $circ = $e->search_action_circulation([
{target_copy => $copy->id, checkin_time => undef}, $flesh
- ])->[0];
+ ],{no_tz => 1})->[0];
if($circ) {
$patron = $circ->usr;
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->circ($self->editor->retrieve_action_circulation($self->circ->id,{no_tz => 1}));
if($self->limit_groups) {
$self->editor->json_query({ from => ['action.link_circ_limit_groups', $self->circ->id, $self->limit_groups] });
mbt => ['summary']
}
}
- ])
+ ],{no_tz => 1})
);
}
xact_finish => undef,
checkin_time => undef,
($usrid ? (usr => $usrid) : ())
- })->[0];
+ },{no_tz => 1})->[0];
return $self->bail_on_events($self->editor->event) unless $circ;