TST: dateutil fixes (GH8639)

xref #8639