Skip to content

Commit

Permalink
Merge pull request #2084 from bcgov/fix/collectionDate
Browse files Browse the repository at this point in the history
Update SDCCollectionSummary.vue
  • Loading branch information
alexmcdermid authored Dec 16, 2024
2 parents 6414f3f + e1555f2 commit e90bb2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ import DoughnutChart from '../common/DoughnutChart.vue';
import { mapState, mapActions } from 'pinia';
import { sdcCollectionStore } from '../../store/modules/sdcCollection';
import router from '../../router';
import {LocalDate, LocalDateTime} from '@js-joda/core';
import {LocalDate} from '@js-joda/core';
import {capitalize} from 'lodash';
import {SDC_STEPS_DISTRICT, SDC_STEPS_SCHOOL, SDC_STEPS_INDP_SCHOOL, SDC_STEPS_SUMMER_DISTRICT, SDC_STEPS_SUMMER_INDP_SCHOOL, SDC_STEPS_SUMMER_SCHOOL} from '../../utils/sdc/SdcSteps';
import {getDateFormatter} from '../../utils/format';
Expand Down Expand Up @@ -316,7 +316,7 @@ export default {
instituteStatusCode = response.data.sdcDistrictCollectionStatusCode;
}
this.currentStepIndex = this.getIndexOfSDCCollectionByStatusCode(instituteStatusCode);
this.setCurrentCollectionYear(LocalDateTime.parse(response.data.submissionDueDate, getDateFormatter('uuuu-MM-dd\'T\'HH:mm:ss')).year());
this.setCurrentCollectionYear(LocalDate.parse(response.data.submissionDueDate)?.year());
this.calculateStep();
}
}).catch(error => {
Expand Down

0 comments on commit e90bb2d

Please sign in to comment.