0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/test/unit
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: notification store without duplicates (#7135) 2016-08-11 08:58:51 +01:00
controllers/frontend improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
mail fix test issues on node v6 (#7106) 2016-07-18 18:22:37 +01:00
metadata fix(twitter-card): use proper image tag (#7025) 2016-06-29 18:04:43 -06:00
middleware Revert "fix: ensure we initialise activeTheme on bootstrap (#6950)" 2016-07-21 12:26:16 +01:00
models/base improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
models_plugins change default order of posts (#7096) 2016-07-15 11:04:10 +01:00
scheduling feature: maintenance mode (#7019) 2016-07-15 17:22:41 +01:00
server_helpers 🐛 Change default referrer policy (#7240) 2016-08-22 11:20:56 +02:00
utils improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_utils_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
apps_filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
apps_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
config_spec.js 🐛 config.theme.timezone must not be overwritten (#7232) 2016-08-22 17:56:35 +02:00
error_handling_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
exporter_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_url_spec.js ensure null query options don't break ghost-url 2016-02-29 00:25:38 -06:00
importer_spec.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
migration_fixture_spec.js Switch to new native system font stack (#7219) 2016-08-18 20:29:46 +01:00
migration_fixture_utils_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
migration_spec.js fix: enable maintenance mode only if there is an upgrade to perform (#7129) 2016-07-26 09:56:07 +01:00
permissions_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
rss_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_helpers_index_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_helpers_template_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_spec.js fix: enable maintenance mode only if there is an upgrade to perform (#7129) 2016-07-26 09:56:07 +01:00
server_utils_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
showdown_client_integrated_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
sitemap_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
slack_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
social-urls_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
storage_local-file-store_spec.js fixes: storage base getUniqueFileName (#7230) 2016-08-22 16:54:10 +01:00
utils_pipeline_spec.js Update mocha to version 3.0.2 🚀 (#7165) 2016-08-11 08:51:19 +01:00
versioning_spec.js feature: maintenance mode (#7019) 2016-07-15 17:22:41 +01:00
xmlrpc_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00