Fixes #42: Fix incorrect year display of certificate
This commit is contained in:
parent
b4616e0ba5
commit
0fd43d28cd
2
frontend/.vscode/settings.json
vendored
2
frontend/.vscode/settings.json
vendored
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": "explicit"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -69,7 +69,7 @@ export function Registers(props: {person: Person | null, count: number}) {
|
|||||||
const registerByYear: {[y: string]: Array<Register>} = {};
|
const registerByYear: {[y: string]: Array<Register>} = {};
|
||||||
|
|
||||||
allRegisters.forEach((register) => {
|
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) {
|
if (registerByYear[year] === undefined) {
|
||||||
registerByYear[year] = [];
|
registerByYear[year] = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user