Skip to content

Commit

Permalink
#108 | Convert distributionDate to IST from UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Dec 19, 2023
1 parent 7b66f99 commit 07a1da8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ private DistributionDTO createDistributionRequest(Subject subject) {
distributionDTO.setNameOfAccount((String) subject.getObservation(ACCOUNT_NAME));
/* Distribution Related fields*/
Date distributionDate = DateTimeUtil.convertToDate((String) subject.getObservation(DISTRIBUTION_DATE));
distributionDate = DateTimeUtil.offsetTimeZone(distributionDate, DateTimeUtil.UTC, DateTimeUtil.IST);
distributionDTO.setDateOfDistribution(DateTimeUtil.formatDate(distributionDate));
distributionDTO.setTypeOfCommunity((String) subject.getObservation(TARGET_COMMUNITY));
distributionDTO.setDisasterType((String) subject.getObservation(TYPE_OF_DISASTER));
Expand Down

0 comments on commit 07a1da8

Please sign in to comment.