Sha256: ae60459a005913d467d9136b5ad30a46d8c53ffe59e326d221fcff3921b3eff5

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

module GovukTimezone
  def self.configure(config)
    case config.time_zone
    when "UTC"
      Rails.logger.info "govuk_app_config changing time_zone from UTC (the default) to London"
    when "London"
      Rails.logger.info "govuk_app_config always sets time_zone to London - there is no need to set config.time_zone in your app"
    else
      raise "govuk_app_config prevents configuring time_zones other than London - config.time_zone was set to #{config.time_zone}"
    end

    config.time_zone = "London"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk_app_config-9.13.1 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.13.0 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.12.0 lib/govuk_app_config/govuk_timezone.rb