Everyone loves a good farmers’ market. Who wouldn’t enjoy the chance to get their hands on fresh fruits, vegetables, and honey while also supporting local businesses?

But believe it or not, there is a knack to shopping at farmers’ markets. A big part of it involves learning what produce is in season at a particular time of the year. That alone will help you know whether the produce is fresh and local.

If you see a vendor selling peaches in January, chances are, they didn’t grow them themselves. Of course, there’s always the chance they have a greenhouse, so be sure to ask questions before making a judgment call!

In general, here’s the rundown for produce by season: in spring, buy avocados, rhubarb, strawberries, asparagus, carrots, collard greens, and mushrooms — assuming you know they’re the safe kind.

In the summer, it’s time to stock up on berries of all kinds, as well as peaches, plums, tomatoes, zucchini, beans, and watermelon. Fall is the perfect time for apples, grapes, squash, potatoes, and cranberries. In winter, it’s time for root vegetables and greens!

Of course, there’s more to it than that. Here are 40 tips for shopping at a farmers’ market.