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