Mon Feb 29 16:32:17 2016s.zuban [...] gmail.com - Ticket created
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
Sat Mar 05 20:42:31 2016DROLSKY [...] cpan.org - Status changed from 'new' to 'resolved'
Sat Mar 05 20:42:36 2016DROLSKY [...] cpan.org - Fixed in 1.24 added