Remove useless echo in date_parse()

This commit is contained in:
Peter Dave Hello committed 2021-02-01 18:50:03 +08:00
1 parent 79d159cd38
commit 151b462d8c
1 file changed
+2 -2
+2 -2
View File
@@ -87,10 +87,10 @@ EXCLUDE_CONTAINER_IDS_FILE="exclude_container_ids"
function date_parse() {
if date --utc >/dev/null 2>&1; then
# GNU/date
echo $(date -u --date "${1}" "+%s")
date -u --date "${1}" "+%s"
else
# BSD/date
echo $(date -j -u -f "%F %T" "${1}" "+%s")
date -j -u -f "%F %T" "${1}" "+%s"
fi
}