Resetting lost date and time

Hello! I’m a newbie applescripter, and need alot of help, lol.

My Mac is an old Blueberry iBook I bought to replace my dead PC (yup, I’m a switcher, lol) but the battery is dead. I don’t really mind, I use the laptop mostly as a desktop for writing at the lab or at home, I’m never really in need of the battery. The only problem is, everytime I turn on my computer, the date and time reset right back to Wed January 1 1969, and the clock starts at 00:00:00. What I need is an applescrip that will either reset the date and time to Jan 1 2004 (and I can fix the month and specific day/time manually) or a function that will reset the date and time according to a website such as timeanddate.com or yahoo.ca which is my default webbrowser. Or else, to copy the date and time from a text file, or a list of dates that change according to the functions of the script.

Can you understand what I’m asking? It might be easier just to set the date function to the year 2004…or something.

I’ll hopefully have a new battery by the end of the year, but until then its rather annoying to have to open date and time every morning and reset it.

Thanks!

Lee

It seems from what you say the time is set when you start your computer that you’re using OS X. If you are, you can use the Date and Time preference pane to automatically set the time using a network time server.
Open the Date and Time preference pane, select the Date & Time button, and be sure that “Set Date & Time automatically:” is checked. Select a time server that is close to your location.

If you are using a previous OS, open the Date & Time Control panel, check the box next to “Use a Network Time Server”, click on “Server Options…” and select a time server close to you. Modify the schedule to connect to the time server everytime you start up your mac.