fixing the email template bug for date printing: