export_excel: Fix export of date and datetime objects