Commit da483642 authored by Ivaria's avatar Ivaria

Regexp is hard

parent 3b50ed2c
......@@ -56,7 +56,7 @@ fi
# svn date helper function
strtotime() {
value=$( echo $1 | sed -e "s/\([^+]*\)\(\+.*\)/\1/" ) # datetime string w/o TZ
value=$( echo "$1" | sed -e 's/\([^+]*\)\(\+.*\)/\1/' ) # datetime string w/o TZ
format="$2" # strptime string
date -d "$value" +%s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment