|
@@ -320,7 +320,8 @@ class AdminService extends CrudService {
|
|
|
result = [ start, end ];
|
|
|
} else if (type.includes('year')) {
|
|
|
const start = moment().startOf('year').format(this.tf);
|
|
|
- const end = moment(start).add(1, 'year').format(this.tf);
|
|
|
+ const end = moment(start).add(1, 'year').subtract(1, 'day')
|
|
|
+ .format(this.tf);
|
|
|
result = [ start, end ];
|
|
|
}
|
|
|
return result;
|