Arduino and DS1307

Have you tested the analogue input pins work correctly ?
Connect them to ground and take an analogue reading then connect to +5V and take another reading. You should get zero then 1023 (or close to that)

Just an idea.