Package: coreutils
Version: 8.32-4+b1
Severity: normal

The cron executes a script and this in turn another script.
script:
..
START=$(date +"%x %X")
START2=$(date +%s)
rsync ...
END=$(date +"%x %X")
END2=$(date+%s)
..


When I run the date found in START and START2, the result is "date -d -1day". Therefore it tells me that the script was executed the day before when it is not true.


-- System Information:
Debian Release: 11.7
 APT prefers oldstable-security
 APT policy: (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.107-2-pve (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to ca_ES.UTF-8), LANGUAGE=ca_ES.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils depends on:
ii  libacl1      2.2.53-10
ii  libattr1     1:2.4.48-6
ii  libc6        2.31-13+deb11u6
ii  libgmp10     2:6.2.1+dfsg-1+deb11u1
ii  libselinux1  3.1-3

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Reply via email to