Use start of current hour as default contribution time

Co-Authored-By: Garret Alfert <alfert@wevelop.de>
This commit is contained in:
2019-08-02 16:08:13 +02:00
committed by GitHub
parent a9480a09f1
commit d8f565cd9e
+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', {