Forums / Cotonti / Support / Dates after Genoa 0.6.18

Twiebie
#1 2011-08-17 13:04

After updating from 0.6.17 to 0.6.18 i'm experiencing a problem with dates in pages.

When I now try to add a page (news) it ends up all the way as the last page in the news category and I can't set any date newer than 1999.

Thanks.

This post was edited by Twiebie (2011-08-17 14:10, 12 years ago)
foxhound
#2 2011-08-17 18:18

This means you have not updated your page.edit.tpl accordingly.

Compare your page.edit.tpl with the one from the included default skin.

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Twiebie
#3 2011-08-17 18:33

The page.edit.tpl file from 0.6.17 is exactly the same as the one in 0.6.18.

foxhound
#4 2011-08-17 19:45

In 0.6.13 I think it was updated with a changed field. Just compare the default one with yours.

I had the exact same issue till I remembered to change/update that tpl when I updated my test site (which is on hold cause i think there is an exploit with 0.6.18 of which I informed the devs but so far none has replied yet.

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Twiebie
#5 2011-08-17 19:56

Indeed, in 0.6.14 this was added:

<td>
{PAGEEDIT_FORM_DATE}
<p>{PAGEEDIT_FORM_DATENOW} {PHP.skinlang.pageedit.Now}</p>
</td>

Tnx!

Kingsley
#6 2011-08-17 21:43

indeed, then it updates to the current date, but..

press edit again, and check the startdate, goes from 1902 to 1999, and then it stops..

Twiebie
#7 2011-08-17 22:20
#30491 Kingsley:

indeed, then it updates to the current date, but..

press edit again, and check the startdate, goes from 1902 to 1999, and then it stops..

Yep, same here...

Xerora
#8 2011-08-17 22:56

Open system/core/page/page.edit.inc.php and change line 250:

$pag['page_date'] = sed_selectbox_date($pag['page_date'] + $usr['timezone'] * 3600, 'long', 2030, 2000);

to:

$pag['page_date'] = sed_selectbox_date($pag['page_date'] + $usr['timezone'] * 3600, 'long', '', 2030, 2000);

Or download this file: https://raw.github.com/Cotonti/Cotonti/genoa/system/core/page/page.edit.inc.php and replace your old file with this one

This post was edited by Xerora (2011-08-17 23:01, 12 years ago)