Fixed bug where month was off by 1 due to JS using zero based month (0=Jan), and Ruby using 1 based month (1=Jan)