Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242992 - Request version bump for dev-perl/Template-Toolkit-2.20
Summary: Request version bump for dev-perl/Template-Toolkit-2.20
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Perl team
URL: http://search.cpan.org/src/ABW/Templa...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-21 04:25 UTC by Gregg Casillo
Modified: 2008-10-21 20:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregg Casillo 2008-10-21 04:25:24 UTC
I am running into an annoying blooper where I cannot pass a date from a database (e.g. 2008-10-21 00:23:00) into Template's date.format() function, because it requires it to be in the format (h:m:s d/m/y). This adds a needless step to format the date...before it gets formatted! Dumb.

Fortunately, version 2.20 is patched to allow dates from databases that follow the traditional yyyy-mm-dd hh:mm:ss format. The way it should be and a real time saver if I can get it.

Reproducible: Always

Steps to Reproduce:
1. use Template::Plugin::Date in my web site code
2. attempt to pass a date from a database into the date.format() function
3. fails with "bad time/date string:  expects 'h:m:s d:m:y'" error
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2008-10-21 12:20:05 UTC
Gregg, dev-perl/Template-Toolkit-2.20 is in the tree now.

Please test and report if there are any problems.
Comment 2 Gregg Casillo 2008-10-21 20:02:03 UTC
Torsten, thank you for the very quick response. I am happy to report that your ebuild for 2.20 works wonderfully. Thank you!