Macbook Air loses time when battery runs flat

My Macbook Air keeps warning me that the date and time is incorrect whenever I reboot after the main battery has been run completely flat. The onboard CMOS battery is at fault and Apple have acknowledged that it needs to be taken in for repair.