I have found a weird bug in my application and due to my small experience with Javascript I couldn\'t debug it;
I am trying to set a persistent cookie, which will d
have you tried using the getFullYear() and setFullYear() methods of the Date instance instead of getYear() and setYear() ? the latter are are deprecated, see here.
getFullYear()
setFullYear()
Date
getYear()
setYear()
hope that helps! cheers.