Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-Format-Strptime CPAN distribution.

Report information
The Basics
Id: 69793
Status: resolved
Priority: 0/
Queue: DateTime-Format-Strptime

Owner: Nobody in particular
Requestors: BRAD [...]

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)

Subject: Input checking on format_datetime method
Download (untitled) / with headers
text/plain 610b
G'day, This is not a critical bug at all, more a nice-to-have when debugging my own code. If you pass format_datetime a scalar value rather than an object, a runtime error occurs: Can't call method "clone" without a package or object reference at /lib/site_perl/5.12.3/DateTime/Format/ line 781. This is not as immediately useful when debugging as a croak() would be - any chance of that being added? e.g. line 779 croak 'No object passed to format_datetime' unless ref($dt); No object passed to format_datetime at /lib/site_perl/5.12.3/A/Nother/ line 48 Cheers Brad

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to