fix weirdness with dates on tooltips

strtotime('2013') returns the current date so add
a fix to handle the case when just a year is 
passed into it.