Sha256: 02d337b9126a974971866baaef8b2cf41fd495d77f64c542f7caffc29690d147
Contents?: true
Size: 374 Bytes
Versions: 11
Compression:
Stored size: 374 Bytes
Contents
module Locomotive::Steam module Middlewares # Set the timezone according to the settings of the site # class Timezone < ThreadSafe include Concerns::Helpers def _call timezone = site.try(:timezone) log "Timezone: #{timezone.name}" Time.use_zone(timezone) do self.next end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems