-   Programming (
-   -   date resets when power is cut (

Josephus Ross 05-09-2007 05:27 AM

date resets when power is cut
Hi there,

I am running Voyage 0.3 debian on a system that is powered over ethernet and am having trouble storing the date permanantly. at the moment I am using the code

date -s 05/09/2007
date -s 10:06:06

if I then 'reboot' the system with or without an internet connection its fine but if I cut power to the unit and then start the box up without an internet connection it loses the date and resets back to 00:00:00 01/01/2000.

I need the unit to remember the time whether the power is cut or whether there is an internet connection or not. How can I go about doiung this?

All help is much appreciated, Thank in advance.


Guttorm 05-09-2007 05:42 AM


Checkout "hwclock"

man hwclock explains it.

bigearsbilly 05-09-2007 06:55 AM

is the clock battery OK?

All times are GMT -5. The time now is 09:16 AM.