rtcwake sets alarm 1 hour in the past

Bug #603446 reported by Indie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: util-linux

Ubuntu 9.10
util-linux_2.16-1ubuntu5_amd64.deb
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
ProcVersionSignature: Ubuntu 2.6.31-22.60-hostname
SourcePackage: util-linux
Uname: Linux 2.6.31-22-server x86_64

Revision history for this message
Indie (alanlitster) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.