Page 1 of 1

Article Starts & Ends dates

Posted: Tue 19. Oct 2004, 15:07
by antonis
Can anybody inform me on how can I change the default Article Ends date that currently is 2010-12-31.
I want its default value to be something like 2100-12-31 for articles that should never expire...

Now, the furthest a date can be is 2037-12-31, when set manualy. How can I change that as well? If you try using a date after 2037 you get an ERROR message about invalid date value.

any suggestions....?

Posted: Tue 19. Oct 2004, 15:10
by TAOG
well, trust me. u dont use ure DB entrys after 2010 :) u will have new DB entry at this point.

Posted: Tue 19. Oct 2004, 18:54
by cguenther
If you use Windows as operation system where phpwcms is running, that could might your problem:
Windows: Negative timestamps are not supported under any known version of Windows. Therefore the range of valid years includes only 1970 through 2038.
source: http://de.php.net/manual/en/function.mktime.php

Posted: Tue 19. Oct 2004, 21:30
by Earl of Mar
@antonis:

The dates are hard-coded, but you can change them easily in /include/inc_templ/article.new/tmpl.php

Posted: Wed 20. Oct 2004, 23:05
by antonis
thanks very much guys!

As Earl of Mars said... I found it and fixed it the way I like it..!

Thanks again!