Use start of current hour as default contribution time

Co-Authored-By: Garret Alfert <alfert@wevelop.de>
This commit is contained in:
bastiandgalfert authored and GitHub committed 2019-08-02 16:08:13 +02:00
1 parent a9480a09f1
commit d8f565cd9e
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ export default Component.extend({
init () {
this._super(...arguments);
this.set('defaultDate', new Date()); // TODO use beginning of current hour
this.set('defaultDate', moment().startOf('hour').toDate());
// Default attributes used by reset
this.set('attributes', {