We have a platform with Embedded-Debian-Linux as OS which will be distributed worldwide. We have a Battery-Backed RTC which should be used as system time.We do not want to have any timezone or any info about localtimes.But everytime we have ethernet conenction, the system time is changed to utc.What we have tried till now1) Removed localtime and zoneinfo file. -> No effect, time is still changing after pluging ethernet.2) Setting localtime to /usr/share/zone/UTC -> Still no effect, time is automatically changed to utc.My Question: 1) What is changing our time after pluging it into the ethernet?? We do not have any time-server!2) Is there anyway to adjust the system, so that we do not rely on any timezone info. all we need is just to use Embedded-RTC as our timeinfo.
Embedded Debian-Linux, no Timezone
debian;time;timezone
The unix system is designed to run on UTC, timezones are a convenience for us mere humans who prefer to see a local time. Two users working on the one system, could sit in different timezones and therefore have different timezones set in their environment.It appears that you want to force the system to run in your timezone, but you also say that you want to ignore timezones, well then ignore them and work in UTC.Having said this, it should be possible to run the system on an incorrect time, and thereby achieve what you want.So as others have suggested, ntpd or ntpdate are probably changing your system time.On my system (ubuntu14.04) a quick grep for ntp in /etc reveals ntpdate being invoked when the network comes up and time servers being set after the dhcp client exits as shell hooks./etc/dhcp/dhclient-exit-hooks.d/ntpdate/etc/network/if-up.d/ntpdateTake a look there.In addition, time changes are usually recorded in your syslog, search for step time server