Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

date knob passes timestamp (number) instead of Date object #68

Closed
jardakotesovec opened this issue Oct 27, 2016 · 1 comment
Closed

Comments

@jardakotesovec
Copy link

Is that intention? I would expect that inside component I will receive Date object and not timestamp.

@simon360
Copy link

It would be nice to have options here. I'd prefer to receive the date as an ISO8601 string, because of the way our component will be used. I'm not sure there's one correct type.

Perhaps an optional callback on date() which receives a Date as its input and returns whatever it wants, which is then passed on to the component. Could be a string, could be the Date, could be the timestamp. The current behaviour would remain as the default.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants