Bug 12795 - Check-in breaks on for items due to past dates
Summary: Check-in breaks on for items due to past dates
Status: RESOLVED DUPLICATE of bug 12669
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 18:01 UTC by Tomás Cohen Arazi
Modified: 2016-03-02 07:31 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi 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 ***