perl-DateTime/DateTime-1.47-no-Sub::Util.patch
Paul Howarth abbb4713a7 Update to 1.47
- New upstream release 1.47
  - DateTime::Duration->multiply now only allows integer multipliers (GH#73)
  - Added is_last_day_of_quarter() and is_last_day_of_year() methods (GH#72)
  - When an exception was thrown while adding a duration, the object could be
    left in a broken state with the duration partially applied; subsequent
    addition or subtraction would produce the wrong results (GH#74)
- Add patch to support use without Sub::Util (GH#77, GH#78)
2018-03-26 12:31:22 +01:00

17 lines
451 B
Diff

--- lib/DateTime/Duration.pm
+++ lib/DateTime/Duration.pm
@@ -274,9 +274,10 @@ sub subtract_duration { return $_[0]->ad
{
my $check = validation_for(
- name => '_check_multiply_params',
- slurpy => 1,
- params => [
+ name => '_check_multiply_params',
+ name_is_optional => 1,
+ slurpy => 1,
+ params => [
{ type => t('Int') },
],
);