Gossamer Forum
Quote Reply
display expiry date
does anyone know what tag I use to display the expiry date as formatted in setup:date_expiry_format on the detailed page?

template dump doesn't show it.

Thanks
Quote Reply
Re: [Alba] display expiry date In reply to
BUMP


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [Alba] display expiry date In reply to
You'll have to write a global to do it. The global would need to be something like:
Code:
sub {
my $expiry_date = shift;
return ($expiry_date > UNPAID and $expiry_date < FREE)
? GT::Date::date_get($expiry_date, $CFG->{date_expiry_format}) : '';
}

Adrian

Last edited by:

brewt: May 16, 2006, 11:46 AM
Quote Reply
Re: [brewt] display expiry date In reply to
Hi,

I would like to obtain the value of payments_start on the page modify.html (link.html).

I use this global :

Code:
sub {
my $table = $DB->table('Payments');
my $cond = GT::SQL::Condition->new(payments_linkid => 'LIKE' => $_[0]);
$table->select_options("ORDER BY payments_status ASC");
return $table->select('payments_start' => $cond)->fetchrow;
}

But it gives me the value with the unix format.

There would be a solution to obtain the value according to setup : date_user_format ?

Thank you for your assistance.

Oyo