refactor(reporting): clarify date parsing in allocation controller and frontend
- Updated comments to specify date parsing format as 'YYYY-MM-DD'. - Modified date range handling in the frontend to format dates using date-fns for consistency.
This commit is contained in:
@@ -412,7 +412,7 @@ export default class ReportingAllocationController extends ReportingControllerBa
|
||||
let startDate: moment.Moment;
|
||||
let endDate: moment.Moment;
|
||||
if (date_range && date_range.length === 2) {
|
||||
// Parse dates without timezone
|
||||
// Parse simple YYYY-MM-DD dates
|
||||
startDate = moment(date_range[0]).startOf('day');
|
||||
endDate = moment(date_range[1]).endOf('day');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user