markchalloner / git-semver

Git plugin for Semantic Versioning
MIT License
382 stars 43 forks source link

OS X and non-gnu date #9

Closed blakef closed 8 years ago

blakef commented 9 years ago

date on OSX (at least on El Capitan) uses -d to set the kernel's value for daylight saving time.

date -d "2015-11-13" "+%s"

Should be changed to:

date -j -f "%Y-%m-%d" "2015-11-13" "+%s"