Before this rev., the aggregates values displayed in the footer of list views were formatted according to the field type, and the field's widget was ignored, whereas it should be used by default. For instance, if the 'float_time' widget is set on a float field, the sum should be formatted as FloatTime as well. Closes #22724.