at command ignores savings time when given UTC time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
at (Debian) |
Fix Released
|
Unknown
|
|||
at (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
at doesn't handle correctly UTC date. My timezone is CEST which is UTC+1 plus one more hour for daylight saving. That make is two hours more than UTC. This is what happens when I try to run an at task specifying the date as UTC.
$ date
Sun Sep 20 17:07:42 CEST 2009
$ date -u
Sun Sep 20 15:07:44 UTC 2009
$ at 1510 UTC 20 SEP 2009
at: refusing to create job destined in the past
Actually 15:10 UTC is more than two minutes in the future.
$ at 1610 UTC 20 SEP 2009
works. I downloaded the source package with apt-get source at and found the bug in the parsetime.y file.
I checked this both on a 8.10 and on a 9.04 machine and got the same results.
I discovered that a bug for this has already been opened to Debian in 2006 for this very same version of the at package (3.1.10) and a patch has been submitted by Håkon Stordahl (I think he's a maintainer). I tried it and it works for me so I attach it to this message. Refer to http://
Unfortunately it seems that the patch didn't make it yet in any released package because a debian 5 server of mine has the same package version and the same bug. It could be possible to apply it to the next Ubuntu release?
Distribution and package info:
For Ubuntu 8.10
$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
$ apt-cache policy at
at:
Installed: 3.1.10.1ubuntu3
Candidate: 3.1.10.1ubuntu3
Version table:
*** 3.1.10.1ubuntu3 0
500 http://
100 /var/lib/
Despite package number 3.1.10 "at -V" reports "at version 3.1.9"
For Ubuntu 9.04
$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
$ apt-cache policy at
at:
Installed: 3.1.10.2ubuntu2
Candidate: 3.1.10.2ubuntu2
Version table:
*** 3.1.10.2ubuntu2 0
500 http://
100 /var/lib/
"at -V" also reports "at version 3.1.9" here.
Changed in at (Debian): | |
status: | Unknown → New |
Changed in at (Ubuntu): | |
status: | New → Confirmed |
Changed in at (Debian): | |
status: | New → Confirmed |
Changed in at (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
tags: | added: patch-forwarded-debian |
Changed in at (Debian): | |
status: | Confirmed → Fix Released |
at still has the bug in Karmic.
$ date -u mirror. switch. ch karmic/main Packages dpkg/status
Sat Mar 13 14:10:36 UTC 2010
$ at 1415 UTC 13 MAR 2010
at: refusing to create job destined in the past
$ apt-cache policy at
at:
Installed: 3.1.11-1ubuntu4
Candidate: 3.1.11-1ubuntu4
Version table:
*** 3.1.11-1ubuntu4 0
500 http://
100 /var/lib/
I'll reapply the patch from Debian.