Datepicker bug when using locale format in mobile devices

(2 posts) (1 voice)

Tags:

  1. elgoumas, Member

    Hello,

    I have in my preferences the date format "dd/mm/YYYY".
    Datepickers work ok when using from desktop.
    The problem is when using from mobile devices.
    The date shows in format "mm/dd/yyyy" and in the console I get the message:
    The specified value "28/03/2025" does not conform to the required format, "yyyy-MM-dd".

    I am in the latest version.
    Also I noticed the input date element is a bit different when using mobile device.
    Desktop:
    <input step="1" data-dateformat="dd/mm/yy" data-timeformat="HH:mm:ss" data-format="D/O/Y" class=" datepick date_input short datetimefilter" value="28/02/2025" type="text" name="u2" id="u2" data-stddatetime="2025-02-28">
    Mobile:
    <input step="1" data-dateformat="dd/mm/yy" data-timeformat="HH:mm:ss" data-format="D/O/Y" class=" datepick date_input short datetimefilter" value="28/02/2025" type="date" name="u2" id="u2" data-stddatetime="2025-02-28">

    The type is different in each case, if this means anything.

  2. elgoumas, Member

    Sorry , my mistake, I was using a mobile device with other language.
    When I changed to the correct language all was ok.


Reply

You must log in to post.