javan/whenever — pull request #490 by joshkinabrew (2014-10-01 03:30:14+00:00)
Title: fix time problems for ActiveSupport versions greater than 4.1.6

Hi @javan ,

First off, thanks for an awesome gem!

Ran in to this problem today using ActiveSupport 4.2.0.beta2 in a new project ( was confused that whenever was working fine on all of my other projects, initially thought it was down to choosing ruby 2.2.0.preview1 over 2.1.3 but finally traced it down to the switch from ActiveSupport 4.1.6 to ActiveSupport 4.2.0.beta2 ) and applied this fix locally and it worked great for all of my crontab generation. Also tested it on ActiveSupport < 4.2.0.beta1 and it worked for me on the versions I tested (4.1.6, 4.0.0, 3.2.19).