Fix date formatting to work on Mac OS (#6214)
This commit is contained in:
parent
f331f1d1e9
commit
c06876eb3d
|
@ -9,7 +9,7 @@ if [[ -z $point ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then
|
||||||
echo Influx user credentials not found
|
echo Influx user credentials not found
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue