If you can buy a ds1302 RTC I can provide you with a working program and a schematic. I know it isn't a 1307, but those are the options I can provide.

Travin