fix error with datetime structs in parse_dict