Declined
Last Updated: 20 May 2022 21:16 by Adam
Hari
Created on: 10 Oct 2019 11:33
Category: DatePicker
Type: Feature Request
1
I need a Date control which should not have localtime zone conversion. It should display same date irrespective of any time zone

When i select a date in Kendo-datepicker it gives me a date which is with the local timezone.

Now if the same thing is opened in different timezone the date differs.

So i would need how do i show the same date irrespective of timezone.

2 comments
Adam
Posted on: 20 May 2022 21:16
they simply display the JavaScript Date object they are value-bound to

Kendo decided to use javascript dates here, not us. The user isn't selecting a time/offset. They're only selecting month/day/year. Therefore it's "incorrect" to emit different values depending on the user's location. One simple suggestion is to offer binding to isoStrings (yyyy-mm-dd) instead of dates? That's what the native HTML date picker uses and I think makes more sense?

ADMIN
Dimiter Topalov
Posted on: 16 Oct 2019 08:14

Hi Hari,

In general, the Kendo UI DatePicker (and other components from the DateInputs) package do not perform any date conversion - they simply display the JavaScript Date object they are value-bound to.

If there is any Date creation/parsing/conversion performed on the client beforehand, then the developer is responsible for providing the DatePicker with a value that will display the expected result.

We will have to decline this feature request, as displaying an arbitrary date based on some specific scenario requirements is beyond the scope of our components, and the developer has full control over creating the Date object the DatePicker will display.

Regards,
Dimiter Topalov
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.