diff --git a/packages/common/src/pipes/intl.ts b/packages/common/src/pipes/intl.ts index 8d786b22a1..483e89fd8c 100644 --- a/packages/common/src/pipes/intl.ts +++ b/packages/common/src/pipes/intl.ts @@ -172,7 +172,7 @@ function nameCondition(prop: string, len: number): Intl.DateTimeFormatOptions { } function combine(options: Intl.DateTimeFormatOptions[]): Intl.DateTimeFormatOptions { - return (Object).assign({}, ...options); + return options.reduce((merged, opt) => ({...merged, ...opt}), {}); } function datePartGetterFactory(ret: Intl.DateTimeFormatOptions): DateFormatterFn {