In my chef cookbook's attributes/default.rb
I have the following:
default['dt'] = ActiveSupport::TimeZone.new('America/Chicago').local_to_utc(Time.now)
In my recipe/default.rb
I have
chef_gem 'active_support/time'
Which if I understood correctly, would work same as a
gem install 'active_support/time'
require 'active_support/time'
But upon running the cookbook I get
NameError
---------
uninitialized constant Class::TZInfo
How do I resolve the NameError?