Skip to content

Commit

Permalink
fix: fixing date discrepancy between indicator and form field
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Jul 28, 2022
1 parent 00d4794 commit fb21d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/components/ReportingRequirement/ReportDueIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const ReportDueIndicator: React.FC<Props> = ({
<b>
{DateTime.fromISO(reportingRequirement.reportDueDate)
.setLocale("en-CA")
.setZone("America/Vancouver")
.toLocaleString(DateTime.DATE_MED)}
</b>{" "}
<Link href={`#form-${formChange.id}`}>
Expand Down
2 changes: 1 addition & 1 deletion app/lib/helpers/reportStatusHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const parseStringDate = (stringDate: string) => {
return (
stringDate &&
DateTime.fromISO(stringDate, {
setZone: true,
zone: "America/Vancouver",
locale: "en-CA",
}).startOf("day")
);
Expand Down

0 comments on commit fb21d36

Please sign in to comment.