Ghost/core
Aileen Nowak 2875f5a9bc 🐛 config.theme.timezone must not be overwritten (#7232)
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`
2016-08-22 17:56:35 +02:00
..
client@1ce2e8b37c Move remainder of ember tasks to client repo (#7172) 2016-08-07 11:53:28 +02:00
server 🐛 config.theme.timezone must not be overwritten (#7232) 2016-08-22 17:56:35 +02:00
shared move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
test 🐛 config.theme.timezone must not be overwritten (#7232) 2016-08-22 17:56:35 +02:00
index.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00