Merge pull request #57 from dliessi/fix-date-FreeBSD

fix date parsing on FreeBSD
This commit is contained in:
Laurent Cozic 2016-10-08 11:28:02 +01:00 committed by GitHub
commit 1880478bc5

View file

@ -47,6 +47,7 @@ fn_parse_date() {
linux*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
cygwin*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
darwin*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;
FreeBSD*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;
esac
}