COMPAT: dateutil fixups for 2.3 (GH9021, GH8639)