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
paulussup opened this issue
Sep 25, 2017
· 1 comment
· Fixed by #7346
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP4A relatively minor issue that is not relevant to core functions
What is the use-case or motivation for changing an existing behavior?
Numbers should be coerced as Unix Timestamps.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
The text was updated successfully, but these errors were encountered:
josephperrott
added
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
labels
Sep 25, 2017
josephperrott
changed the title
Unable to implement own coerceDateProperty strategy.
Feature Request: Allow custom coerceDateProperty strategy
Sep 25, 2017
josephperrott
added
P4
A relatively minor issue that is not relevant to core functions
and removed
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
labels
Sep 25, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP4A relatively minor issue that is not relevant to core functions
https://github.com/angular/material2/blob/d2ceb2c755e20252f02fda11dc4eef55d20f4bbe/src/lib/datepicker/datepicker-input.ts#L37
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Ability to inject custom date coercion function or have numbers coerced as Unix Timestamps.
What is the current behavior?
Currrently strings are parsed as
Iso8601
https://github.com/angular/material2/blob/d2ceb2c755e20252f02fda11dc4eef55d20f4bbe/src/lib/datepicker/coerce-date-property.ts#L23and
type == 'number'
throw errorshttps://github.com/angular/material2/blob/d2ceb2c755e20252f02fda11dc4eef55d20f4bbe/src/lib/datepicker/coerce-date-property.ts#L33
What are the steps to reproduce?
plunkr
What is the use-case or motivation for changing an existing behavior?
Numbers should be coerced as Unix Timestamps.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: