XP Cap time limit?

How long does it last? Duration of 24 hours, or resets at midnight?

I believe it resets at the same time as the challenges.
Yesterday I reached the cap, and today when the new challenges arrived, I could gain XP again. Since the time the challenges update is different for each time zone, I can’t give you a specific time.