FIX: keep date object (#9292)

This commit is contained in:
Joffrey JAFFEUX
2020-03-27 14:15:14 +01:00
committed by GitHub
parent 1b09a0cd17
commit eda8f319a2

View File

@@ -32,7 +32,6 @@ export default Component.extend({
onChangeDate(date) {
if (this.onChange) {
date = new Date(this.date);
const year = date.getFullYear();
const month = date.getMonth();
const day = date.getDate();