detect_timezone_rails
detect_timezone_rails copied to clipboard
Simple Rails 3.1+ gem for better timezone detection
Use erb to drop in the ActiveSupport mappings so that we can properly select the value from the helper.
I keep getting this error on the browser. The timezone is not detected Uncaught TypeError: Object [object Object] has no method 'set_timezone'
undefined method `tzinfo' for nil:NilClass (in /tmp/build_14qw7djnbp2vr/vendor/bundle/ruby/2.0.0/bundler/gems/detect_timezone_rails-ba752d91669c/vendor/assets/javascripts/jquery.detect_timezone.js.erb) /tmp/build_14qw7djnbp2vr/vendor/bundle/ruby/2.0.0/bundler/gems/detect_timezone_rails-ba752d91669c/vendor/assets/javascripts/jquery.detect_timezone.js.erb:34:in`block in singleton class' See the whole log at: https://gist.github.com/hayksaakian/5230403 note: I'm using the version at github.com/elevation/detect_timezone_rails due to another issue that has...