British/European getCollectionDatePublic problem
I've enabled British/European date formats by adding the following to site.php:
...which works fine in most places. I'm having trouble with Release Date though.
When I add a new news page, the Release Date (public date) doesn't get carried over to the editing interface. It is set correctly on the initial interface where the title and description is entered, but when I OK that and go to edit the content it reverts to 1 January 1970 (I know this because my news page pagetype displays $c->getCollectionDatePublic("j F Y") to show the date of a particular news item.
looks like this is the problem:
$value = date('Y-m-d H:i:s', strtotime($value));
Andrew can you fix this? in the meantime, you can change this manually by sticking in DATE_APP_GENERIC_MDYT_FULL
The problem boils down to concrete/helpers/form/date_time.php (e.g. line 87) whereby c5 inserts the current datetime in the DATE_APP_GENERIC_MDY format, into the cDatePublic input of /composer/write.php. Unless the user knows that they *must* use the datepicker to correct the dt format (or make it incorrect if you're British), the dt will be corrupt and end up with a posting time of zero (1 Jan 1970).