mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
closes #7182 When calling `config.set()` in the settings api, we want to set the active timezone of the blog to make it available in our `settingsCache`. But because the `theme` object in the `set` prototype was already set to `Etc/UTC` as default, the `_.merge` function would always overwrite our `activeTimezone` with the default value. This PR changes the code in the way, that we always set 'Etc/UTC' for the timezone as default, _until_ we fetched our settings and therefore the `activeTimezone` setting, so we can overwrite it. This issue had not only influence on the date helper, but everywhere in our codebase, where we rely on reading the `timezone` from our config, instead of our settings. The `{{@blog.timezone}}` helper reflected that quiet well, as it would always show `Etc/UTC` |
||
---|---|---|
.. | ||
api | ||
controllers/frontend | ||
metadata | ||
middleware | ||
models/base | ||
models_plugins | ||
scheduling | ||
server_helpers | ||
utils | ||
api_utils_spec.js | ||
apps_filters_spec.js | ||
apps_spec.js | ||
config_spec.js | ||
error_handling_spec.js | ||
exporter_spec.js | ||
filters_spec.js | ||
ghost_url_spec.js | ||
importer_spec.js | ||
migration_fixture_spec.js | ||
migration_fixture_utils_spec.js | ||
migration_spec.js | ||
permissions_spec.js | ||
rss_spec.js | ||
server_helpers_index_spec.js | ||
server_helpers_template_spec.js | ||
server_spec.js | ||
server_utils_spec.js | ||
showdown_client_integrated_spec.js | ||
sitemap_spec.js | ||
slack_spec.js | ||
social-urls_spec.js | ||
storage_local-file-store_spec.js | ||
utils_pipeline_spec.js | ||
versioning_spec.js | ||
xmlrpc_spec.js |