modify to_dict to convert datetimes to a timestamp, not an ISO formatted
string