# New Ticket Created by Moritz Lenz # Please include the string: [perl #130313] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130313 >
< moritz> m: say Date.new('2017-02-29') <+camelia> rakudo-moar 8d4dbb: OUTPUT«Day out of range. Is: 29, should be in 1..28 in block <unit> at <tmp> line 1» < moritz> m: say Date.new(year => 2017, month => 42, day => 29) <+camelia> rakudo-moar 8d4dbb: OUTPUT«2017-42-29» All constructor variants should do the same bounds checking for month and day. An automatic bisect [1] identified this commit [2] as the culprit. [1] https://gist.github.com/Whateverable/7e080e976a205a729d77e335428f8f6b [2] https://github.com/rakudo/rakudo/commit/585619f35acc136ad96900f09ebaba2627389942 -- Moritz Lenz https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/