When I grow my tomatoes, they are usually picked at their peak ripeness, they were being pumped full of sugar and nutrients by the plant until the last second when I picked them and cooked with them. The ones that have to travel are picked before ripe, and "ripen" sad and alone in a truck with no extra nutrients, and when they reach me looking "ripe", it's usually a facade. Local market fruits and vegetables stand somewhere in between, depending on volume and channel it's being sold in.
There is a difference though between fruits and vegetables imported for year round availability, and those imported as a seasonal bounty; the later ones maintain quality as it sells relatively quickly in season and doesn't need to be picked as much in advance.