Fix date format in templates