Page 1 of 1

article_end default date?

Posted: Fri 10. Dec 2010, 06:42
by dellos
Where is the article_end auto date number ?? Well allways when I add the article the default end date is 2010 where should I look for changing it to another date for article default end ??

Re: article_end default date?

Posted: Fri 10. Dec 2010, 10:15
by flip-flop
The best solution is to update your old version to the latest version.

(I think you will find the end date in older installations in include/inc_lib/article.editcontent.inc.php).

Change:

Code: Select all

$article["article_end"] = "2010-12-31 23:59:59";
to

Code: Select all

$article["article_end"] = date("Y-m-d H:i:s", time() + (3600*24*365*10) );
Knut

Re: article_end default date?

Posted: Wed 26. Jan 2011, 15:09
by dellos
Changed it but still getting the 2010 why ?? :)

Re: article_end default date?

Posted: Thu 27. Jan 2011, 22:55
by flip-flop
Please edit/change in this two files:

- include/inc_lib/article.editcontent.inc.php

Code: Select all

$article["article_end"] = "2010-12-31 23:59:59";
to

Code: Select all

$article["article_end"] = date("Y-m-d H:i:s", time() + (3600*24*365*10) );
- include/inc_tmpl/article.new.tmpl.php

Code: Select all

$article_end = "2010-12-31 23:59:59";
to

Code: Select all

$article_end = date("Y-m-d H:i:s", time() + (3600*24*365*10) );
I have no version available for a test.

Knut