Skip to content

Commit 8b08577

Browse files
committed
Update entrypoint.sh to include timezone in next renewal check output
- Modified date formatting in the next_run variable to include timezone information, enhancing clarity for scheduled certificate renewal checks. - Maintained existing functionality while improving the output format for better usability.
1 parent c6aeaee commit 8b08577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ while true; do
119119
# POSIX-compliant way to show next run time
120120
current_timestamp=$(date +%s)
121121
next_timestamp=$((current_timestamp + RENEWAL_INTERVAL))
122-
next_run=$(date -r "$next_timestamp" '+%Y-%m-%d %H:%M:%S' 2>/dev/null || date '+%Y-%m-%d %H:%M:%S')
122+
next_run=$(date -r "$next_timestamp" '+%Y-%m-%d %H:%M:%S %z' 2>/dev/null || date '+%Y-%m-%d %H:%M:%S %z')
123123
echo "Next certificate renewal check will be at ${next_run}"
124124

125125
# Store PID of sleep process and wait for it

0 commit comments

Comments
 (0)