Fix the date format for the templates