Gossamer Forum
Quote Reply
last update tags
i remember that links 2.0 has a tags like <%date%> and <%time%> and its show a last time links updated.



whats tags needs to run for links sql 2.0?
Quote Reply
Re: [Mich_U] last update tags In reply to
By default, Links should have date and time globals setup:

Date:
Code:
sub {
# Displays the current date.
Links::init_date();
GT::Date::date_set_format($CFG->{'date_user_format'});
my $date = GT::Date::date_get();
GT::Date::date_set_format($CFG->{'date_db_format'});
return $date;
}

Time:
Code:
sub {
# Displays the current time.
my ($sec,$min,$hr) = localtime( time + ($Links::CFG->{date_offset} *3600));
return sprintf ("%02d:%02d:%02d", $hr, $min, $sec);
}

Hope that helps.

Sean