No Code Attached Yet bug
avatar madanedeepali
madanedeepali
20 Jul 2023

Steps to reproduce the issue

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 "/>

Expected result

The selected date should get saved in the database in the respected table.

Actual result

Saved Successfully message gets displayed not an error but the date is not getting saved in the database.

System information (as much as possible)

The issue is present in both Joomla3 and Joomla4

Additional comments

You can also try adding this field in the core Joomla contact component for cross-checking it does not work there also

avatar madanedeepali madanedeepali - open - 20 Jul 2023
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jul 2023
avatar madanedeepali
madanedeepali - comment - 20 Jul 2023

@dziudek @pollen8 @elkuku can you check ASAP

avatar chmst
chmst - comment - 20 Jul 2023

What do? you mean with %e?
I cannot find this in the date https://www.php.net/manual/de/datetime.format.phptime format

avatar chmst chmst - change - 20 Jul 2023
Labels Added: Information Required
avatar chmst chmst - labeled - 20 Jul 2023
avatar madanedeepali
madanedeepali - comment - 21 Jul 2023

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

avatar madanedeepali
madanedeepali - comment - 24 Jul 2023

@chmst any update on the above issue

avatar brianteeman
brianteeman - comment - 25 Jul 2023

please do not tag people. especially repeatedly. No idea why you chose those people but one is a bot and another is not active

avatar chmst
chmst - comment - 25 Jul 2023

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.

grafik

EDIT: second test with a date with only 1 digit in day and confirm your issue.

avatar chmst chmst - change - 25 Jul 2023
Labels Added: bug
avatar chmst chmst - labeled - 25 Jul 2023
avatar chmst chmst - change - 25 Jul 2023
Labels Removed: Information Required
avatar chmst chmst - unlabeled - 25 Jul 2023
avatar Fedik
Fedik - comment - 25 Jul 2023

@madanedeepali you missing filterformat="D j M Y" in your XML.
Hovewer there also another bug.

Please test #41224

avatar Fedik Fedik - change - 25 Jul 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-07-25 08:33:12
Closed_By Fedik
avatar Fedik Fedik - close - 25 Jul 2023
avatar madanedeepali
madanedeepali - comment - 25 Jul 2023

@Fedik Added filterformat="D j M Y" in the XML file still facing the same issue

avatar Fedik
Fedik - comment - 25 Jul 2023

@madanedeepali please test the fix #41224, then it will work

Add a Comment

Login with GitHub to post a comment