Skip to content

Commit db40827

Browse files
committed
fix: Time singleton does not take defaults from configuration into account (closes #992)
1 parent e224a46 commit db40827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/client/time.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const Time = {
1818
const end = now.clone().endOf('day')
1919
// Try to guess user timezone
2020
const timezone = moment.tz.guess() || ''
21-
Store.set('time', _.merge(config.time || {}, {
21+
Store.set('time', _.defaultsDeep(config.time || {}, {
2222
range: {
2323
start,
2424
end,

0 commit comments

Comments
 (0)