Sha256: 7f37a7e42a43a2fd357708ddf0c2e17fb28325570d3ce32a13834b4420f60dbb

Contents?: true

Size: 566 Bytes

Versions: 18

Compression:

Stored size: 566 Bytes

Contents

module GovukTimezone
  def self.configure(config)
    raise "govuk_app_config prevents configuring time_zone with config.time_zone - use config.govuk_time_zone instead" unless config.time_zone == "UTC"

    if config.respond_to?(:govuk_time_zone) && config.govuk_time_zone.present?
      config.time_zone = config.govuk_time_zone
    else
      Rails.logger.info 'govuk_app_config changing time_zone from UTC (the rails default) to London (the GOV.UK default). Set config.govuk_time_zone = "UTC" if you need UTC.'
      config.time_zone = "London"
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
govuk_app_config-9.16.1 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.16.0 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.8 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.7 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.6 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.5 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.4 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.3 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.2 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.1 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.15.0 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.14.6 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.14.5 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.14.4 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.14.3 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.14.2 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.14.1 lib/govuk_app_config/govuk_timezone.rb
govuk_app_config-9.14.0 lib/govuk_app_config/govuk_timezone.rb