Skip to content

Commit

Permalink
Warning about DateTime::Locale deprecated method
Browse files Browse the repository at this point in the history
Warning about the "day_names" method, which is deprecated
in the recent releases of DateTime::Locale.
  • Loading branch information
jforget authored and book committed Apr 15, 2014
1 parent a76b7ce commit 32b2126
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Revision history for Perl extension DateTime::Calendar::Pataphysical.

0.05 2011-mm-jj xxx
- suppress the warning about the deprecated "day_names" method
in DateTime::Locale

0.04 2004-07-29 the "Transfiguration of Saint V. van Gogh" release
- added classification of holidays

Expand Down
4 changes: 2 additions & 2 deletions lib/DateTime/Calendar/Pataphysical.pm
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ sub day_name {

if ($self->{day} == 29) {
my $name = 'hunyadi';
my $n = $self->{locale}->day_names->[0];
my $n = $self->{locale}->day_format_wide->[0];
$name = ucfirst $name if $n eq ucfirst $n;
return $name;
} else {
return $self->{locale}->day_names->[($self->day_of_week_0 || 7)-1];
return $self->{locale}->day_format_wide->[($self->day_of_week_0 || 7)-1];
}
}

Expand Down

0 comments on commit 32b2126

Please sign in to comment.