Skip to content

Commit

Permalink
Create the default date with hours set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rwestlund authored and admwx7 committed May 3, 2018
1 parent 6429cce commit bebaf25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paper-calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@
type: Date,
notify: true,
value() {
return new Date();
var d = new Date();
d.setHours(0, 0, 0, 0);
return d;
},
observer: '_dateChanged'
},
Expand Down

0 comments on commit bebaf25

Please sign in to comment.