Skip to content
Snippets Groups Projects
Commit 55e8ea21 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

change of approach : change getYear for getFullYear

parent c2882631
Branches
No related tags found
1 merge request!4Url/year/title
......@@ -8,7 +8,7 @@ const date = new Date()
const beginYear = 1900 + (date.getMonth() < 7 ? date.getYear()-1 : date.getYear());
function formToucanUrlId(toucan){
return toucan.title.toLowerCase().replace(/\s/g, "")+"-"+toucan.date;
return toucan.title.toLowerCase().replace(/\s/g, "")+"-"+toucan.date.getFullYear();
}
function AllToucan(props){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment