Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • karen 186 posts 461 karma points
    Jan 17, 2018 @ 17:48
    karen
    0

    Datepicker year changes incorrectly when you type it in

    When I try to type in the year in the datepicker, it changes incorrectly.

    For example, I pick some date using the datepicker, and it populates "2018-01-03" into the text box.

    Then I try to change the date by typing "1979-01-03", when I tab out of the field, it changes to "0079-01-19"

    After that, I cannot get the year to go to any recent year, it will change everything to prefix with "00"

    Umbraco version 7.7.7 assembly: 1.0.6554.23584 Umbraco Forms: "6.0.5"

  • George 30 posts 122 karma points
    Jan 17, 2018 @ 18:17
    George
    0

    Are you using the "Umbraco.DateTime" property type for the field? What is the Date format in the settings for that data type?

    I'm wondering if the Date format is perhaps incorrect in some way.

  • karen 186 posts 461 karma points
    Jan 17, 2018 @ 18:24
    karen
    0

    I am using Umbraco Forms, and for the field type picking Date (renders Datepicker) - there are no settings that I can see in the UI.

  • George 30 posts 122 karma points
    Jan 17, 2018 @ 18:59
    George
    0

    Ah. Sorry, I'm unfamiliar with Umbraco Forms. I should've noticed that you tagged it that way.

    All I know is that I've had similar troubles in the past that were caused by format strings. It doesn't sound like that'll be helpful to you unfortunately... Not unless there are some global settings for the Datepicker somewhere.

  • karen 186 posts 461 karma points
    Jan 18, 2018 @ 02:33
    karen
    100

    Turns out I had made a change to the Datepicker file for my own form Theme, and had a typo in the datepicker class!

Please Sign in or register to post replies

Write your reply to:

Draft