Fix Smarty date_format issue