We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f205648 commit a11ece1Copy full SHA for a11ece1
src/entrypoint.sh
@@ -204,7 +204,7 @@ else
204
# POSIX-compliant way to show next run time
205
current_timestamp=$(date +%s)
206
next_timestamp=$((current_timestamp + RENEWAL_INTERVAL))
207
- next_run=$(date -r "$next_timestamp" '+%Y-%m-%d %H:%M:%S %z' 2>/dev/null || date '+%Y-%m-%d %H:%M:%S %z')
+ next_run=$(date -d "@$next_timestamp" '+%Y-%m-%d %H:%M:%S %z' 2>/dev/null || date '+%Y-%m-%d %H:%M:%S %z')
208
echo "Next certificate renewal check will be at ${next_run}"
209
210
# Store PID of sleep process and wait for it
0 commit comments