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

Change d'année début avril au lieu de début mars

parent f137cd63
No related branches found
No related tags found
No related merge requests found
Pipeline #19526 passed
......@@ -79,10 +79,10 @@ export const revaluationName: string | undefined =
const today = new Date()
export const year =
today.getFullYear() + (today.getMonth() > 1 /* => After February */ ? 1 : 0)
today.getFullYear() + (today.getMonth() > 2 /* => After March */ ? 1 : 0)
export const yearPLF =
today.getFullYear() +
(revaluationName !== undefined && today.getMonth() > 1 /* => After February */
(revaluationName !== undefined && today.getMonth() > 2 /* => After March */
? 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