Ghost/core/server
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
..
api fix: delete unused theme endpoints (#7231) 2016-08-22 10:54:54 +01:00
apps Switch to new native system font stack (#7219) 2016-08-18 20:29:46 +01:00
config 🐛 config.theme.timezone must not be overwritten (#7232) 2016-08-22 17:56:35 +02:00
controllers ensure static page edit route redirects to editor (#7169) 2016-08-08 09:42:04 +02:00
data feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
errors Allow maintenance mode to be set in config.js (#7124) 2016-07-25 21:28:35 +02:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers 🐛 Change default referrer policy (#7240) 2016-08-22 11:20:56 +02:00
mail 🐛 Don't overwrite config.theme.title in GhostMail (#7224) 2016-08-19 10:22:07 +02:00
middleware feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
models fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
permissions deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00
routes fix: delete unused theme endpoints (#7231) 2016-08-22 10:54:54 +01:00
scheduling post-scheduling: delete job but time is null (#7035) 2016-06-28 20:14:29 +02:00
storage fixes: storage base getUniqueFileName (#7230) 2016-08-22 16:54:10 +01:00
translations feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
utils Node version check w/o semver (#7097) 2016-07-16 01:20:05 +02:00
views Switch to new native system font stack (#7219) 2016-08-18 20:29:46 +01:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Harvest server side strings 2015-12-19 12:12:16 +01:00
i18n.js improvement: general fixes 2016-06-01 07:07:20 +02:00
index.js fix: enable maintenance mode only if there is an upgrade to perform (#7129) 2016-07-26 09:56:07 +01:00
overrides.js deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00
update-check.js Support for custom notifications (#7077) 2016-07-22 14:02:10 +01:00