Ticket #47630: patch-fix_date_-d_invocation.diff

File patch-fix_date_-d_invocation.diff, 288 bytes (added by ballapete (Peter "Pete" Dyballa), 2 years ago)

Fixes invocation of 'date -d' to 'gdate -d' which works – when coreutils are installed…

  • tests/scripts/functions.sh

    old new  
    1515
    1616timer() {
    1717        if [ -n "$STARTTIME" ]; then
    18                 date -u -d "now - $STARTTIME sec" +%T
     18                gdate -u -d "now - $STARTTIME sec" +%T
    1919        fi
    2020}