Skip to content

do not error when second argument does not have a time part#628

Merged
dmtrKovalenko merged 1 commit into
dmtrKovalenko:masterfrom
Breezeemr:master
Oct 6, 2022
Merged

do not error when second argument does not have a time part#628
dmtrKovalenko merged 1 commit into
dmtrKovalenko:masterfrom
Breezeemr:master

Conversation

@dspiteself

Copy link
Copy Markdown
Contributor

mergeDateAndTime will error out if time does not have time components. Most consumers of date-io are unfamiliar that a time library could protect against an issue like that. For instance https://mui.com/x/react-date-pickers/date-picker/ will call mergeDateAndTime when just dealing with dates. This patch will make date-io work more like the other date libraries without a strong type system.

@dmtrKovalenko
dmtrKovalenko merged commit 3e11970 into dmtrKovalenko:master Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants