fixes "`year` is not defined"

in fact I think this was supposed to be `fullYear = date.getFullYear()` otherwise the variable `year` won't be used anywhere. (my bad)