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: 112585
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: s.zuban [...] gmail.com
Cc:
AdminCc:

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



Subject: $dt->time() is broken
Date: Mon, 29 Feb 2016 15:31:29 -0600
To: bug-DateTime [...] rt.cpan.org
From: Sergiy Zuban <s.zuban [...] gmail.com>
According to docs $dt->time is just an alias for $dt->hms( $optional_separator ), but with recent changes in 1.23 optional parameter is no longer passed to ->hms() method: -*DateTime::time = \&hms; +*DateTime::time = sub { $_[0]->hms }; Fix: *DateTime::time = sub { shift->hms( @_ ) }; -- Sergiy Zuban