Sha256: 302b9d7cfc86ad5df8817ecc9b632eb152b29bc9a32ec613a1bdb00439087b22

Contents?: true

Size: 212 Bytes

Versions: 42

Compression:

Stored size: 212 Bytes

Contents

module Locomotive
  module Concerns
    module TimezoneController

      protected

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

    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.2.0.alpha1 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.1.1 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.1.0 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.1.0.rc1 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.3 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.2 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.1 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.0 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.0.rc0 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.0.alpha3 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-3.4.1 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.0.alpha2 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-4.0.0.alpha1 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-3.4.0 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-3.3.0 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-3.3.0.rc3 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-3.3.0.rc2 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-3.1.2 app/controllers/locomotive/concerns/timezone_controller.rb
locomotivecms-3.2.1 app/controllers/locomotive/concerns/timezone_controller.rb