Sha256: 25add1825f7321a596f0d96b2a556b1813c2292b8e7b14afee5bf8f20305fad1

Contents?: true

Size: 209 Bytes

Versions: 17

Compression:

Stored size: 209 Bytes

Contents

module Locomotive
  module ActionController
    module Timezone

      protected

      def set_timezone(&block)
        Time.use_zone(current_site.try(:timezone) || 'UTC', &block)
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.6 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.6.rc2 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.6.rc1 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.5 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.4 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.3 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.2 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.1 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.0 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.0.rc3 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.0.rc2 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.5.0.rc1 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.4.1 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.4.0 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.3.1 lib/locomotive/action_controller/timezone.rb
locomotive_cms-2.3.0 lib/locomotive/action_controller/timezone.rb