I think you already know the answer.
However... as a failsafe, try a different charger. The problem may be the charger, not the batteries.
Having said that, assuming your demand power draw is give/take 0 (nobody on the boat, so no systems running other than stereo memory and maybe a bilge pump?) I am surprised your batteries are flat.