Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Global Doesnt work for Search

Quote Reply
Global Doesnt work for Search
Hi have a global I use for Links.html- takes Add_Date (yyyy-mm-dd) and returns the ONLY the year (yyyy)

Works fine all through the site, except for Search Results!

Global:

Code:

sub {
no strict;
use GT::Date qw/:all/;
my $b = '%yyyy%';
my ($rec) = @_;
my $year = GT::Date::date_transform ($rec->{Add_Date}, $CFG->{date_user_format}, $b);
return $year;
}


ANy idea why it fails on Search_results.html?
dave

Big Cartoon DataBase
Big Comic Book DataBase