We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3dc263 commit 95da35cCopy full SHA for 95da35c
1 file changed
tests/generateWithTZ.spec.tsx
@@ -38,6 +38,9 @@ describe('dayjs: getNow', () => {
38
const M_now = moment().tz(JP);
39
40
expect(D_now.format()).toEqual(M_now.format());
41
- expect(D_now.get('hour') - D_now.utc().get('hour')).toEqual(9);
+
42
+ const expectedOffset = M_now.utcOffset();
43
+ const actualOffset = D_now.utcOffset();
44
+ expect(actualOffset).toEqual(expectedOffset);
45
});
46
0 commit comments