diff --git a/src/components/senior/DisplaySenior.tsx b/src/components/senior/DisplaySenior.tsx index 6837fb77..3f85149d 100644 --- a/src/components/senior/DisplaySenior.tsx +++ b/src/components/senior/DisplaySenior.tsx @@ -48,6 +48,12 @@ const DisplaySenior = (props: DisplayProps) => { seniorId: senior.id, }); }; + const seniorFiles = senior.Files.map((file) => { + const userTimeZoneOffset = new Date().getTimezoneOffset(); + const newDate = new Date(file.date.getTime() + userTimeZoneOffset * 60000); + const { date, ...other } = file; + return { date: newDate, ...other }; + }); return (