class Locomotive::Steam::Middlewares::Timezone

Set the timezone according to the settings of the site

Public Instance Methods

_call() click to toggle source
# File lib/locomotive/steam/middlewares/timezone.rb, line 10
def _call
  timezone = site.try(:timezone)

  log "Timezone: #{timezone.name}"

  Time.use_zone(timezone) do
    self.next
  end
end