Skip to content

Commit

Permalink
Update README docs on Time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
richardTowers committed Jul 23, 2024
1 parent 0f00140 commit a6df713
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,17 @@ Some frontend apps support languages that are not defined in the i18n gem. This

## Time zone

This gem sets `config.time_zone` to `"London"` - this cannot currently be overridden in application config.
This gem sets `config.time_zone` to `"London"` by default.

If you require a different time zone, you can set it with `config.govuk_time_zone`:

```ruby
config.govuk_time_zone = "UTC"
```

Note that we've introduced a new config field (`govuk_time_zone`) here, because
it's otherwise not possible to distinguish between an app using UTC as the
default and an app explicitly asking for UTC.

## License

Expand Down

0 comments on commit a6df713

Please sign in to comment.