From 679d691cd40c45399d9abae9b0f08cd228f596c5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 12 Feb 2022 14:12:32 +0100 Subject: openssh: utc validities --- system-profiles/openssh/known-hosts/expiration.gup | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system-profiles/openssh/known-hosts/expiration.gup') diff --git a/system-profiles/openssh/known-hosts/expiration.gup b/system-profiles/openssh/known-hosts/expiration.gup index c8169262..49af61f4 100644 --- a/system-profiles/openssh/known-hosts/expiration.gup +++ b/system-profiles/openssh/known-hosts/expiration.gup @@ -1,6 +1,8 @@ #!/usr/bin/env zsh set -eu +export TZ=UTC + year=$(date +'%Y') while [[ $((($(date -d "${year}0101" +'%s') - $(date +'%s')) / 86400)) -lt 150 ]]; do year=$((year + 1)) -- cgit v1.2.3