Skip to content
Snippets Groups Projects
Commit 8d334421 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Shift year change to April

parent 79feb207
Branches
Tags 0.0.1038
No related merge requests found
Pipeline #19959 passed
......@@ -79,10 +79,10 @@ export const revaluationName: string | undefined =
const today = new Date()
export const year =
today.getFullYear() + (today.getMonth() > 2 /* => After March */ ? 1 : 0)
today.getFullYear() + (today.getMonth() > 3 /* => After April */ ? 1 : 0)
export const yearPLF =
today.getFullYear() +
(revaluationName !== undefined && today.getMonth() > 2 /* => After March */
(revaluationName !== undefined && today.getMonth() > 3 /* => After April */
? 1
: 0)
export const date = `${year}-01-01`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment