• Resolved jdizzle

    (@jdizzle)


    Error happens on plugin demo page too. MacOs 10.12.6 running Safari 12.0.2 (12606.3.4.1.4).

    Otherwise the plugin looks good (just waiting for Safari compatibility).

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Addons for Contact Form 7

    (@contactform7addons)

    Hi @jdizzle

    Thanks for checking out the plugin.

    Safari doesn’t have a built-in date picker for date fields, so the plugin adds a JavaScript alternative. JavaScript doesn’t have access to your browser’s locale settings, so it instead checks for a lang attribute on the html or body tag. Usually, WordPress themes add this by default based on your site’s locale settings.

    As such, Safari will always display the date format in the format of your site’s language settings, while other browsers will respect the user’s language settings.

    Writing this out just now gave me an idea for how I can potentially respect the user’s language settings in the future, but for now hopefully you’re ok with just setting your site’s language to the format you want to use. I will update this support ticket if/when I add user language detection for Safari.

    Thanks,
    Angus

    Thread Starter jdizzle

    (@jdizzle)

    Hi @contactform7addons,

    Sorry I should have clarified, that error is thrown on submission (making forms impossible to submit when date is *required), it’s not from a purely visual perspective.

    Try to submit a form with datepicker in Safari and you’ll see what I mean.

    Thanks for your prompt reply BTW ??

    Cheers

    • This reply was modified 5 years, 11 months ago by jdizzle.
    • This reply was modified 5 years, 11 months ago by jdizzle.
    Plugin Contributor Addons for Contact Form 7

    (@contactform7addons)

    Hi @jdizzle

    Thanks for the clarification. This was indeed a bug. I’m currently uploading v2.4.2 which addresses this issue by enforcing the display format yyyy-MM-dd for polyfilled date inputs.

    Thanks again,
    Angus

    Thread Starter jdizzle

    (@jdizzle)

    No problem @contactform7addons, thanks for pushing the update so fast ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date format is incorrect on safari’ is closed to new replies.