Use start of current hour as default contribution time
Co-Authored-By: Garret Alfert <alfert@wevelop.de>
This commit is contained in:
@@ -21,7 +21,7 @@ export default Component.extend({
|
|||||||
|
|
||||||
init () {
|
init () {
|
||||||
this._super(...arguments);
|
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
|
// Default attributes used by reset
|
||||||
this.set('attributes', {
|
this.set('attributes', {
|
||||||
|
|||||||
Reference in New Issue
Block a user