iamkun / iamkun/dayjs

dayjs().toDate() get different value in browser and node

Open
#673 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
dayjs().toDate() get different value in browser and node:
In browser, get the local time;
In node , get the GMT time.

**Expected behavior**
I hope to be a same value , such as a local time.

**Information**
- Day.js Version : newest.
- OS: Windows 10
- Browser chrome 76
- Time zone: [e.g. GMT+08:00 ]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.