Dwayne De Rosario injected some joy into D.C. United’s sour season Wednesday night, posting a hat trick in a 3-1 U.S. Open Cup victory over the Philadelphia Union at Maryland SoccerPlex.

United, which has not won in league play since early March, advanced to a June 26 quarterfinal against the New England Revolution at SoccerPlex. The Revs defeated the New York Red Bulls, 4-2, at Harvard.

“There’s a silent confidence about us that we can get out of this thing, and now’s the time,” Coach Ben Olsen said. “It’s nice to be continuing in the Cup, but we need to start performing in this way in the regular season, and that starts this weekend against Toronto.”

Chris Pontius left the match with a head injury.

“He told me he didn’t have a concussion, but I’m not buying it for a second,” Olsen said. “He didn’t look so hot, so we’ll get all the testing done and see where he’s at.”

In other round-of-16 matches:

Carolina RailHawks (NASL), 3, Chivas USA 1 (extra time)

Orlando City (USL) 1, Sporting Kansas City 0

FC Dallas 3, Houston Dynamo 0

Real Salt Lake 5, Charleston Battery (USL) 2 (extra time)

Portland Timbers 2, Tampa Bay Rowdies (NASL) 0

Chicago Fire 2, Columbus Crew 1

Quarterfinal pairings (June 26)

New England at D.C. United

Carolina at Real Salt Lake

Portland at Dallas

Orlando City at Chicago

League breakdown: MLS 6, NASL 1, USL 1.

De Rosario hat trick and interview video: