mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
2875f5a9bc
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 | ||
apps | ||
config | ||
controllers | ||
data | ||
errors | ||
events | ||
helpers | ||
middleware | ||
models | ||
permissions | ||
routes | ||
scheduling | ||
storage | ||
translations | ||
utils | ||
views | ||
filters.js | ||
ghost-server.js | ||
i18n.js | ||
index.js | ||
overrides.js | ||
update-check.js |