date bug fix.

was using Date.getYear() instead of Date.getFullYear()