Sha256: 836ba72d027c644ad207ea7706d3527e3660610abd7aee1e431e4df74a2f02ce
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
module Locomotive::Steam module Middlewares # Set the timezone according to the settings of the site # class Timezone < Base def _call(env) super Time.use_zone(site.try(:timezone) || 'UTC') do app.call(env) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms_steam-0.1.2.pre.beta | lib/locomotive/steam/middlewares/timezone.rb |
locomotivecms_steam-0.1.1 | lib/locomotive/steam/middlewares/timezone.rb |