Create a calendar field in any component's XML file with the following details
<field name="nextdate" class="inputbox" format="%a %e %b %Y" timeformat="24" filter="server_utc" translateformat="false" showtime="false" singleheader="false" todaybutton="false" weeknumbers="false" filltable="false" type="calendar" label="Next Date" description=" Enter the next date" hint=" you can select the next date in the format "/>
The selected date should get saved in the database in the respected table.
Saved Successfully message gets displayed not an error but the date is not getting saved in the database.
The issue is present in both Joomla3 and Joomla4
You can also try adding this field in the core Joomla contact component for cross-checking it does not work there also
Labels |
Added:
No Code Attached Yet
|
What do? you mean with %e?
I cannot find this in the date https://www.php.net/manual/de/datetime.format.phptime format
Labels |
Added:
Information Required
|
The link you provided not working for me.
%e means Day of the month without leading zeros (1 to 31)
You can refer to the document here https://docs.joomla.org/Calendar_form_field_type
please do not tag people. especially repeatedly. No idea why you chose those people but one is a bot and another is not active
Sorry, the link is: https://www.php.net/manual/en/datetime.format.php and I did not read correctly my apologies.
I tested your field with J4.3.3, php 8.2 and got a deprecated message, but the input is saved correctly in the database.
EDIT: second test with a date with only 1 digit in day and confirm your issue.
Labels |
Added:
bug
|
Labels |
Removed:
Information Required
|
@madanedeepali you missing filterformat="D j M Y"
in your XML.
Hovewer there also another bug.
Please test #41224
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-07-25 08:33:12 |
Closed_By | ⇒ | Fedik |
@madanedeepali please test the fix #41224, then it will work
@dziudek @pollen8 @elkuku can you check ASAP