From 085ddae3b988de5bae20e6e3c6aac15246b1aec1 Mon Sep 17 00:00:00 2001 From: Ben Allen Date: Tue, 27 Jun 2017 08:52:55 -0500 Subject: [PATCH] capture script start time using well supported date arguments --- prowler | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prowler b/prowler index 1ed69d12..d23f90dd 100755 --- a/prowler +++ b/prowler @@ -147,6 +147,8 @@ else WHITE="" fi +SCRIPT_START_TIME=$( date -u +"%Y-%m-%dT%H:%M:%S%z" ) + # Functions to manage dates depending on OS if [[ "$OSTYPE" == "linux-gnu" ]]; then # function to compare in days, usage how_older_from_today date @@ -324,7 +326,7 @@ getWhoami(){ if [[ $MODE == "csv" ]]; then CALLER_ARN=$($AWSCLI sts get-caller-identity --output json --profile $PROFILE --region $REGION --query "Arn" | tr -d '"') textTitle "0.0" "Show report generation info" - textNotice "ARN: $CALLER_ARN TIMESTAMP: $(date -Is)" + textNotice "ARN: $CALLER_ARN TIMESTAMP: $SCRIPT_START_TIME" else echo "" echo "This report is being generated using credentials below:"