View | Details | Raw Unified | Return to bug 15764
Collapse All | Expand All

(-)a/offline_circ/service.pl (-1 / +7 lines)
Lines 24-29 use warnings; Link Here
24
use CGI qw ( -utf8 );
24
use CGI qw ( -utf8 );
25
use C4::Auth;
25
use C4::Auth;
26
use C4::Circulation;
26
use C4::Circulation;
27
use Koha::DateUtils;
28
use DateTime::TimeZone;
27
29
28
my $cgi = CGI->new;
30
my $cgi = CGI->new;
29
31
Lines 47-52 if ($status eq 'ok') { # if authentication is ok Link Here
47
    $cardnumber =~ s/^\s+//;
49
    $cardnumber =~ s/^\s+//;
48
    $cardnumber =~ s/\s+$//;
50
    $cardnumber =~ s/\s+$//;
49
51
52
    # KOCT send UTC timestamp, it should be converted to local timezone
53
    my $dt = dt_from_string($timestamp, 'iso', DateTime::TimeZone->new(name => 'UTC'));
54
    $dt->set_time_zone(C4::Context->tz);
55
    $timestamp = $dt->ymd('-') . ' ' . $dt->hms(':');
56
50
    if ( $cgi->param('pending') eq 'true' ) { # if the 'pending' flag is true, we store the operation in the db instead of directly processing them
57
    if ( $cgi->param('pending') eq 'true' ) { # if the 'pending' flag is true, we store the operation in the db instead of directly processing them
51
        $result = AddOfflineOperation(
58
        $result = AddOfflineOperation(
52
            $userid,
59
            $userid,
53
- 

Return to bug 15764