-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Labels
client:coreIssues relating to the JavaScript client SDKIssues relating to the JavaScript client SDKhelp wantedCommunity contributions are welcome.Community contributions are welcome.
Description
Describe the bug
While packages/cubejs-client-core/src/time.tstries to customize an internal dayjs instance, these options are also applied to the default dayjs instance.
To Reproduce
import dayjs from 'dayjs';
import { internalDayjs } from '@cubejs-client/core'
console.log(dayjs().startOf('week').format('dddd'); // Sunday
const cubeDayjs = internalDayjs(); // sets weekStart to 1
console.log(dayjs().startOf('week').format('dddd'); // MondayExpected behavior
Cube Client's dayjs internal instance options should not be reflected in the default dayjs instance.
Version:
"@cubejs-client/core": "^1.5.4",
Metadata
Metadata
Assignees
Labels
client:coreIssues relating to the JavaScript client SDKIssues relating to the JavaScript client SDKhelp wantedCommunity contributions are welcome.Community contributions are welcome.