Comment 4 for bug 354793

Revision history for this message
Alexandre Martani (amartani) wrote : Re: date error on saving time starting day

1. Running Ubuntu Server 8.04.2
2. date (GNU coreutils) 6.10
3. locale
LANG=pt_BR.UTF-8
LANGUAGE=pt_BR:pt:en
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC="pt_BR.UTF-8"
LC_TIME="pt_BR.UTF-8"
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY="pt_BR.UTF-8"
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER="pt_BR.UTF-8"
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS="pt_BR.UTF-8"
LC_TELEPHONE="pt_BR.UTF-8"
LC_MEASUREMENT="pt_BR.UTF-8"
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=

It happens when using BRT timezone.

I found the same bug reported here:
http://lists.gnu.org/archive/html/bug-coreutils/2007-09/msg00176.html

This causes the script /etc/cron.daily/apt fail on line 53:
stamp=$(date --date=$(date -r $stamp --iso-8601) +%s)

In this script, $stamp assumes, among others, the values:
/var/lib/apt/periodic/update-stamp
/var/lib/apt/periodic/upgrade-stamp
/var/lib/apt/periodic/autoclean-stamp

The biggest problem is, if these files where last modified on the dates that triggers the bug, it makes the script exit, without even touching the files again. So, the system is never more updated periodically.