`by_month` and `by_year` should treat times as local when passed string/fixnums

We couldn't understand why our tests were failing ... until we looked at the calendar and realized it's October 1st.  

The default of `to_time` is UTC, but our Rails server time zone is set differently (+9, FWIW) -- hence, failures.  This patch addresses that.