Package: tzdata Version: 2011b-2 Severity: normal The kernel maintains a local time offset which is used for some stupid filesystems that are defined to store local times in their timestamps. The offset is initialised by hwclock which is invoked at boot time by /etc/init/hwclockfirst.sh.
The offset should also be updated whenever the system time zone is reconfigured. This can be done by code along the following lines: #define _BSD_SOURCE #define _XOPEN_SOURCE #include <time.h> #include <sys/time.h> int main(void) { struct timezone tz; tzset(); tz.tz_minuteswest = timezone / 60; tz.tz_dsttime = 0; if (settimeofday(NULL, &tz)) { perror("settimeofday"); return 1; } return 0; } The local time offset should also be updated when DST begins and ends, but this would be substantially harder to arrange. Ben. -- System Information: Debian Release: wheezy/sid APT prefers oldstable-proposed-updates APT policy: (500, 'oldstable-proposed-updates'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 2.6.37-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tzdata depends on: ii debconf [debconf-2.0] 1.5.38 Debian configuration management sy tzdata recommends no packages. tzdata suggests no packages. -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org