Fix date formatting to work on Mac OS (#6214)

This commit is contained in:
Dan Albert 2019-10-02 17:44:52 -04:00 committed by Michael Vines
parent f331f1d1e9
commit c06876eb3d
1 changed files with 1 additions and 1 deletions

View File

@ -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