Commercial Fixed Wing
Deviation - Track / Heading All Types; Deviation / Discrepancy - Procedural Clearance
Air Traffic Control Provided Assistance; Flight Crew Returned To Clearance
Environment - Non Weather Related; Human Factors; Procedure
We were cleared to descend via the ZZZZZ Arrival (I cannot remember if they said landing North or South). At the time the ATIS reported landing south. Runways XXC and XXR were in use for landing. We planned on landing XXC. We swapped over to Approach (not sure if FO checked in with our ATIS) and approach did not say a new ATIS was out or what direction of landing was being used. Time was about XA:00Z. A few minutes later we made the turn to the north going to ZZZZZ1. After another two or three minutes Approach informed us we were flying the wrong way; they were landing north now; and gave us a turn back to the southwest heading 210. We reset and briefed landing [Runway] YC. Everything else was fine. I was focusing on flying the arrival. FO was familiarizing himself with the airport; I think he said he has never been there before. Both of us went nearly four months without flying. We didn't check for a new ATIS at the top of the hour.
Air carrier Captain reported making a wrong turn on an arrival; but corrected soon after Approach Control pointed out the error.