Skip to content

Commit

Permalink
Use gdate command instead of date
Browse files Browse the repository at this point in the history
  • Loading branch information
anchpop committed Feb 18, 2025
1 parent e4956a2 commit 63135f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testnet/tools/nns-tools/add-release-to-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ else
print_red "(In particular, unable to determine which canister and commit.)" >&2
exit 1
fi
SECONDS_AGO=$(($(date +%s) - "${PROPOSED_TIMESTAMP_SECONDS}"))
SECONDS_AGO=$(($(gdate +%s) - "${PROPOSED_TIMESTAMP_SECONDS}"))
PROPOSED_ON=$(
date --utc \
gdate --utc \
--date=@"${PROPOSED_TIMESTAMP_SECONDS}" \
--iso-8601
)
Expand Down

0 comments on commit 63135f3

Please sign in to comment.