From db4082715f777091e33011c3c39db2b705e38a1d Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Mon, 18 Nov 2024 18:11:27 +0100 Subject: [PATCH] fix: Time singleton does not take defaults from configuration into account (closes #992) --- core/client/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/time.js b/core/client/time.js index ff3442de4..af7776f87 100644 --- a/core/client/time.js +++ b/core/client/time.js @@ -18,7 +18,7 @@ export const Time = { const end = now.clone().endOf('day') // Try to guess user timezone const timezone = moment.tz.guess() || '' - Store.set('time', _.merge(config.time || {}, { + Store.set('time', _.defaultsDeep(config.time || {}, { range: { start, end,