clock doesn't keep time on my subaru legacy B4, what's the problem? on 2003 Subaru Legacy

Does this has anything to do with the battery?

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
2 answers
poss internal in radio,not the battery
Is it set to the same defalt time every time it acts up? Is this each time car is started?