Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 67550
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: BOLDRA [...] boldra.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in:
  • 0.60
  • 0.66
Fixed in: 1.00



Subject: The universe will end on a Thursday
DateTime::Infinite::Future->new->day_name dies (as it should), but the error message is confusing: Can't call method "day_format_wide" on an undefined value at /opt/ActivePerl-5.10/site/lib/DateTime.pm line 710.
This bit me again on the weekend. A one-line fix: /DateTime/Infinite.pm 18c18 Show quoted text
> sub day_name { Confess::croak 'the end of time is Ragnarok' }
On Mon Oct 08 07:31:29 2012, BOLDRA wrote: Show quoted text
> This bit me again on the weekend. A one-line fix: > > /DateTime/Infinite.pm > 18c18
> > sub day_name { Confess::croak 'the end of time is Ragnarok' }
This is a one line partial fix. To really do this right it'd need to override all the methods that return names, not just this one.