[Koha-bugs] [Bug 13226] Significant slowdown of checkins with fix for notices ignoring the dateformat preference

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 12 17:21:15 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13226

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33485|0                           |1
        is obsolete|                            |

--- Comment #8 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 33494
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33494&action=edit
Bug 13226: 9999-12-31 should not considered as a valid date

DateTime::Format::DateParse (called in Koha::DateUtils::dt_from_string)
does not manage to parse 9999-12-31 if a time zone is given.

my $date = DateTime->new(year => 9999, month => 12, day => 31);
 => OK

DateTime::Format::DateParse->parse_datetime( '9999-12-31' );
 => OK

DateTime::Format::DateParse->parse_datetime( '9999-12-31',
 'America/Los_Angeles' );
 => KO (~20sec on my laptop)

It should not be considered as a valid date when the letter is parsed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list