ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / os-specific / bsd / freebsd / patches / 13.1 / sys-gnu-date.patch
blob2356446baf853ea225501622a27ccaa26e888752
1 diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
2 index c594724d814..d5287c7b992 100644
3 --- a/sys/conf/newvers.sh
4 +++ b/sys/conf/newvers.sh
5 @@ -177,7 +177,7 @@ u=${USER:-root}
6 d=$(pwd)
7 h=${HOSTNAME:-$(hostname)}
8 if [ -n "$SOURCE_DATE_EPOCH" ]; then
9 - if ! t=$(date -r $SOURCE_DATE_EPOCH 2>/dev/null); then
10 + if ! t=$(date -d @$SOURCE_DATE_EPOCH 2>/dev/null); then
11 echo "Invalid SOURCE_DATE_EPOCH" >&2
12 exit 1