ensure we call substr on a string object

In chrome getFullYear() returns a number object. This change ensures it is converted to a string before calling substr(2)