Skip to content

Commit

Permalink
fix: datetime error
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 4, 2021
1 parent 1528434 commit 28b7430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/stories/src/tutorial/reference/controls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ all properties of [ControlType](/tutorial/reference/controls-api/#controltype) i
timePicker: false,
}}}>
{({ date }) => (
<div>{date.toLocaleDateString()}</div>
<div>{new Date(date).toLocaleDateString()}</div>
)}
</Story>
</Playground>
Expand Down

0 comments on commit 28b7430

Please sign in to comment.