Gossamer Forum
Quote Reply
Modify Review_Date
Unfortunately this dont works for me:

Code:


sub {
# Convert Add_Date to sAdd_Date.
my $tags = shift;
Links::init_date();# do we need that?
my $date = $tags->{Review_Date};
my $orig_fmt = $CFG->{"date_user_format"};
my $new_fmt = "%dd%/%mm%/%yyyy%";
my $sReview_Date = GT::Date::date_transform($date, $orig_fmt, $new_fmt);
return $sReview_Date;
}
Has someone a clue how to fix it?
Robert
Quote Reply
Re: [Robert] Modify Review_Date In reply to
Start by telling us what it does and what happens.

Last edited by:

Paul: Dec 12, 2002, 6:22 AM
Quote Reply
Re: [Paul] Modify Review_Date In reply to
Oh. Thought you know that piece of code.
I use it to convert add_date to sadd_date while
we use day.month.year instead of month.day.year
here in germany.

The code should be clear, isnīt it?

Now i tried to use it on review_date, but it seems
the start information is not passed.

What could i say more?
I want to pass the Review_Date for my reviews in german date format ;-)
Robert
Quote Reply
Re: [Paul] Modify Review_Date In reply to
In Reply To:
Start by telling us what it does and what happens.

Thought you were psychic Paul? Laugh Not working today?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Robert] Modify Review_Date In reply to
Try with



sub {
my $tags = shift;
Links::init_date();
my $date = $tags->{Review_Date};
my $orig_fmt = $CFG->{"date_db_format"};
my $new_fmt = "%mm%.%dd%.%yyyy%";
my $sReview_Date = GT::Date::date_transform($date, $orig_fmt, $new_fmt);
return $sReview_Date;
}



Change date_user_format > date_db_format

It works fine for me.
Quote Reply
Re: [Robert] Modify Review_Date In reply to
Isn't this something you can do under:

Admin > Setup > Date Options?

r.
Quote Reply
Re: [ryel01] Modify Review_Date In reply to
Thank you.
Robert