diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json index dc8891d..a1cd576 100644 --- a/frontend/.vscode/settings.json +++ b/frontend/.vscode/settings.json @@ -1,5 +1,5 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" } } \ No newline at end of file diff --git a/frontend/src/certs/Registers/index.tsx b/frontend/src/certs/Registers/index.tsx index 5c6dc20..d44a888 100644 --- a/frontend/src/certs/Registers/index.tsx +++ b/frontend/src/certs/Registers/index.tsx @@ -69,7 +69,7 @@ export function Registers(props: {person: Person | null, count: number}) { const registerByYear: {[y: string]: Array} = {}; allRegisters.forEach((register) => { - const year = new Date(register.register_display_date).getFullYear(); + const year = new Date(`${register.register_display_date} 12:00 GMT-0500`).getFullYear(); if (registerByYear[year] === undefined) { registerByYear[year] = [];