From d8f565cd9e107b3a81242c8e56cefdac07b446b0 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 2 Aug 2019 16:08:13 +0200 Subject: [PATCH] Use start of current hour as default contribution time Co-Authored-By: Garret Alfert --- app/components/add-contribution/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/add-contribution/component.js b/app/components/add-contribution/component.js index 6dd293d..eeb984d 100644 --- a/app/components/add-contribution/component.js +++ b/app/components/add-contribution/component.js @@ -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', {