• Resolved arr0w

    (@arr0w)


    Hi

    I’m using the datepicker on a datefield which is failing to save specific months in my language.
    My WordPress site is in danish and when I save a datefield with March, October, May, February or January in my language (marts, oktober, maj, februar or januar) the date field is empty after pressing save. If I change the month name to english manually everything works.

    13. March 2016 = working
    13. marts 2016 = not working

    Dateformat in datepicker settings: j. F Y
    Dateformat in general settings: j. F Y
    Strict date format: turned off

    • This topic was modified 7 years, 11 months ago by arr0w.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    It is necessary to use “strict dates” in order to parse month names in languages other than English. I’m sorry about that, but that’s how PHP works.

    • This reply was modified 7 years, 11 months ago by xnau webdesign. Reason: spelling
    Thread Starter arr0w

    (@arr0w)

    Ah!

    Don’t be sorry, I just didn’t know. Thank you!
    Everything works as expected now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not saving datefields in other languages’ is closed to new replies.