Fixes #17417: Convert to date *after* finding max and min, not before
Fixes #17417: Convert to date *after* finding max and min, not before

Signed-off-by: Dan Rumney <74e3538a67832cb070a011d9dbab5d4adfd57b0f@gmail.com>

Gerberus/phplist,Gerberus/phplist,Gerberus/phplist,Gerberus/phplist,Gerberus/phplist