used date %N in curl.sh

Not compatible with Mac OSX