-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Change datetime individual #6666
Comments
I agree. We should update part of the full object rather than reset it to 0 |
I updated the description to make it easier to understand the problem. |
@IgorMinar I've tried to work on this issue but I didn't come too far. The datetime-local, time, date and co. all use the same functions (createDateInputType and createDateParser) just with different RegEx. To make it even funnier datetime-local works as expected (doesn't reset the time to 00:00). Could you please give a hint? And there is also one special thing about the type 'time'. The documentation says: "... this binding will always output a Date object to the model of January 1, 1900, or local date new Date(0, 0, 1, HH, mm)...". So changing the time in the second field in the plunker will reset the date to January 1, 1900. |
When a date object is bound to date/time/week/month and the value is updated via one of these input controls then the date object is reset to the beginning of time.
Change the date/time/week and you'll see that it resets.
http://plnkr.co/edit/WTZtQG96D7qEbd310Y0d?p=preview
The text was updated successfully, but these errors were encountered: