Edit /administrator/components/com_content/models/forms/article.xml and edit the publish_up field attributes:
translateformat
format="%Y-%m-%d %I:%M %P"
timeformat="12"
The final result should look something like:
<field
name="publish_up"
type="calendar"
label="COM_CONTENT_FIELD_PUBLISH_UP_LABEL"
description="COM_CONTENT_FIELD_PUBLISH_UP_DESC"
showtime="true"
format="%Y-%m-%d %I:%M %P"
timeformat="12"
size="22"
filter="user_utc"
/>
Then edit any article's Start Publishing
field to set the time to midnight using the calendar tool and save the changes.
After saving, the time displaying in the text field should be 12:00 am
The time in the text field is set to 12:00 pm
Also, the am/pm selector text is not wide enough and the option texts are hidden (see screenshot)
The time can be set manually in the text box to '12:00 am' and is saved as expected. But then you'll notice the hour drop down selection is empty. (See screenshot)
For the am/pm selector, it has a colspan="1"
hardcoded and I believe it should be colspan="2"
.
Status | New | ⇒ | Duplicate Report |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-10-11 05:21:19 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | Duplicate Report | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/18304
closed as duplicate Report #18240
PR #18240 doesn't seem to have fixed the problems reported here. One difference I see now in v3.8.7 is that selecting 12:00 AM using the selector controls forces to pm no matter what. Otherwise, all behaviors previously reported remain the same.
@billtomczak can you please open a new Issue as this one is closed and so Comments get low Notice.
Please test PR #18240