summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_freebsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_freebsd.sh')
-rwxr-xr-xbin/reproducible_freebsd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index ed42686e..dcd48a92 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -142,7 +142,8 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do
fi
# set time forward 398 days and some
- $RSSH "sudo service ntpd stop ; sudo date --set='+398 days +6 hours +23 minutes' ; date"
+ FUTURE_DATE=$(expr $(date +%s) + 34410180)
+ $RSSH "sudo service ntpd stop ; sudo date -f %s $FUTURE_DATE ; date"
echo "$(date -u) - system is running in the future now."
echo "============================================================================="