Bug 12795

Summary: Check-in breaks on for items due to past dates
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: gmcharlt, jonathan.druart, kyle
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12794
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Tomás Cohen Arazi (tcohen) 2014-08-20 18:01:54 UTC
If you create a checkout with a due date in the past (I selected 2011-08-15), and try to check-in, it fails loudly on 3.16.2:

Software error:

Invalid local time for date in time zone: America/Argentina/Cordoba

The problem is hidden on master and 3.16.x because of another bug (Bug 12794) on AJAX, that keeps waiting even when the checkin script  failed.
Comment 1 Jonathan Druart 2015-07-15 11:08:59 UTC
my $dt = DateTime->new( year => 2011, month => 8, day => 15, hour => 23, minute => 59, second => 0, time_zone => 'America/Argentina/Cordoba');

Seems good.

Maybe it's fixed by bug 12699.
If not, please provide more information (parameters passed to dt_from_string or DateTime->new)
Comment 2 Owen Leonard 2016-03-01 17:34:46 UTC
This works for me in 3.23.00.031.
Comment 3 Jonathan Druart 2016-03-02 07:31:44 UTC
(In reply to Jonathan Druart from comment #1)
> Maybe it's fixed by bug 12699.

Read bug 12669.

*** This bug has been marked as a duplicate of bug 12669 ***