From c06876eb3d4f59ea71f01c9787d9943c695d1375 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 2 Oct 2019 17:44:52 -0400 Subject: [PATCH] Fix date formatting to work on Mac OS (#6214) --- scripts/metrics-write-datapoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/metrics-write-datapoint.sh b/scripts/metrics-write-datapoint.sh index 9fc92d39a1..1e715964cf 100755 --- a/scripts/metrics-write-datapoint.sh +++ b/scripts/metrics-write-datapoint.sh @@ -9,7 +9,7 @@ if [[ -z $point ]]; then exit 1 fi -echo "[$(date --iso-8601=seconds)] Influx data point: $point" +echo "[$(date -u +"%Y-%m-%dT%H:%M:%SZ")] Influx data point: $point" if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then echo Influx user credentials not found exit 0