This is a migrated thread and some comments may be shown as answers.

DatePicker selects wrong date/value when typing date manually

5 Answers 1087 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 17 Aug 2016, 11:22 AM

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.

5 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 19 Aug 2016, 09:47 AM
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.
 
0
Andreas
Top achievements
Rank 1
answered on 23 Aug 2016, 07:06 AM

Hello Georgi,

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

Greetings,

Andreas

0
Georgi Krustev
Telerik team
answered on 25 Aug 2016, 06:58 AM
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.
 
0
Andreas
Top achievements
Rank 1
answered on 26 Oct 2016, 01:14 PM

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

0
Andreas
Top achievements
Rank 1
answered on 26 Oct 2016, 01:16 PM
*conversion
Tags
Date/Time Pickers
Asked by
Andreas
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or