You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we write the specific value "1/1/1970 1:00 AM" ( time is depend on browser timezone ) in the input, it gets really weird. Sometimes it saves the value but cannot be deleted or it doesn't even save the value.
In general, operations with the date "1/1/1970" are bad.
Potential problem:
Apparently, somewhere there is a validation through Date.parse(input) where in the case of the date "1/1/1970" the .parse() method returns the value 0, which is in the condition false. Maybe.
Steps To Reproduce
Many ways of reproduction. This is one of them:
open test url
set "1/1/1970 1:00 AM" ( time is depend on browser timezone ) to value input in kendo date time
I tried to reproduce the described issue on my side, but it seems that I can enter the mentioned date ("1/1/1970 1:00 AM") in the DateTimePicker as expected. Please check the following screen recording for reference:
chrome_X32EouKmV8.mp4
Having said that, could you please clarify the exact timezone, in which the reported issue is experienced on your side? The timezone on my side is Eastern European Summer Time (EEST), with a UTC offset of -180 minutes (UTC+3).
Indeed, after adjusting the entered time in the DateTimePicker given the timezone on my side, I am now able to reproduce the reported behavior as described in the issue and demonstrated in the screen recording.
On that note, we identify the reported behavior as a valid bug in the DateTimePicker component and will update this issue accordingly when there is any progress on its resolution.
Description
When we write the specific value "1/1/1970 1:00 AM" ( time is depend on browser timezone ) in the input, it gets really weird. Sometimes it saves the value but cannot be deleted or it doesn't even save the value.
In general, operations with the date "1/1/1970" are bad.
Potential problem:
Apparently, somewhere there is a validation through
Date.parse(input)
where in the case of the date "1/1/1970" the.parse()
method returns the value0
, which is in the conditionfalse
. Maybe.Steps To Reproduce
Many ways of reproduction. This is one of them:
The value has been removed.
Or with setted value we can't delete it:
Test url: https://stackblitz.com/edit/angular-kitaqn-jwajrh?file=src%2Fapp%2Fapp.component.ts
Or the official URL demo: https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/events
Screenshots or video
KendoDateTimePickerProblem1.mp4
Actual Behavior
Weird behavior with "1/1/1970 1:00 AM" ( time is depend on browser timezone ) value.
Expected Behavior
Normal behavior like any other values
Browser
Chrome, Microsoft Edge
Browser version
latest
OS type
Windows
OS version
Win 11
Last working version of the Kendo UI for Angular package (if regression).
No response
The text was updated successfully, but these errors were encountered: