Public bug reported:

> at --version
at version 3.1.19
> uname -a
Linux pi3 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l armv7l armv7l 
GNU/Linux
> lsb_release -rd
Description:    Ubuntu 18.04.2 LTS
Release:        18.04

Error description:
Let´s assume it is February, 12th, 10 pm and you want "at" to execute a command 
4 hours from now, so at February 13th, 2 am in the morning.
If running "at now +240minutes" now, this will result in the following "atq":
19      Tue Feb 12 02:00:00 2019 a root

So it is "Feb 12" instead of "Feb 13".

Even worse, if you add another command to the "at queue" now without emptying 
it first, the original command in the queue will be executed directly, because 
obviously at notices now that there is some command to be executed from the 
past.
This can be annoying when e.g. shutting down a remote server 4 hours after it 
has been powered up with "at".

** Affects: at (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1815672

Title:
  "at now +240minutes" calcultes wrongly if passing through midnight

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/at/+bug/1815672/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to