rtcwake sets alarm 1 hour in the past
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: util-linux
Ubuntu 9.10
util-linux_
Local timezone Europe\London UTC+1
My dev box is set to use the hwclock in localtime due to it dual booting with windows. When I use
rtcwake -l -m no -t $( date --date="10 min" +%s ) -v
to set the wakeup time the output of cat /proc/driver/rtc shows that it has been set to 1 hour in the past (minus 10 minutes). If I use --date="1 hour 10 min" it then produces the expected output. Changing the hwclock format to use UTC results in the correct behaviour. After that fix it does then result in the box waking up at the correct time after a 'poweroff'.
I've also tried the same under a separate install of Lucid and that produces the expected result when using both localtime and UTC.
ProblemType: Bug
Architecture: amd64
Date: Fri Jul 9 06:01:38 2010
DistroRelease: Ubuntu 9.10
Package: util-linux 2.16-1ubuntu5
ProcEnviron:
SHELL=/bin/bash
LANG=en_GB.UTF-8
ProcVersionSign
SourcePackage: util-linux
Uname: Linux 2.6.31-22-server x86_64