Fix declaration of $date