DatePicker selects wrong date/value when typing date manually

6 posts, 0 answers
  1. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 17 Aug Link to this post

    Hi,

    I'm using a Kendo DatePicker for my HTML5 grid (Attachment "date1.png").

    If you select/pick a date everything's fine, but if you type a date manually and set the focus on any other object, the typed date will jump 1 day before it. For example:

    I type "13.07.2016" and click a save-button (that's what I meant with set the focus on any other object), then the date jumps to "12.07.2016".

    Do not hesitate to ask if you have any questions.

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 19 Aug Link to this post

    Hello Andreas,

    I tested the depicted issue using our Globalization demo, but it seems that the widget works jus fine:

    http://screencast.com/t/TWx4eiFa1Yk

    Could you test the same demo and let me know whether the issue is still present at your side? Also could you share with us what is the Timezone configuration of the PC, as it could be relevant?

    Regards,
    Georgi Krustev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 23 Aug in reply to Georgi Krustev Link to this post

    Hello Georgi,

    your demo works absolutely fine. Timezone is CEST (UTC +2). Do you want to know anything else?

    Greetings,

    Andreas

  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 25 Aug Link to this post

    Hello Andreas,

    In that case, the issue is lurking somewhere else. If the demo works just fine, then the cause of the erroneous behavior could be related to the surrounding implementation (how the widget is used).

    Could you send us a repro demo? You can use the Dojo demo as a base. With an example that replicates the issue locally, we can continue our investigation and narrow the problem down much faster.

    Regards,
    Georgi Krustev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  6. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 26 Oct in reply to Georgi Krustev Link to this post

    Hello Georgi,

    the source of this bad behavior is not related to your control, its caused by the JSON.stringify() conversation, because the datetime is stored as CEST (UTC +2) and it will be castet automatically to UTC.

     

    We will discuss a matching solution on base of that topic:

    http://stackoverflow.com/a/1488415

     

    Best regards

    Andreas

  7. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 26 Oct in reply to Andreas Link to this post

    *conversion
Back to Top
Kendo UI is VS 2017 Ready