Public bug reported: In resolute, the date command is returning the wrong value for this sequence:
$ date +%s.%N --date="$(date +%s.%N) seconds ago" It should return a tiny decimal number, but instead it is returning a seemingly random value in the range (-2, 1) -- yes, that's negative numbers. Noticed this issue because the following is being used to debug startup time of desktop snaps: ``` START=$(date +%s.%N) # do some work... echo "desktop-launch elapsed time: $(date +%s.%N --date="$START seconds ago")" ``` https://github.com/canonical/snapcraft-desktop- integration/blob/main/common/mark-and-exec#L12 ** Affects: rust-coreutils (Ubuntu) Importance: Undecided Status: New ** Tags: resolute ** Package changed: coreutils-from (Ubuntu) => rust-coreutils (Ubuntu) ** Tags added: resolute -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2161660 Title: wrong output of date command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2161660/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
