iamkun / iamkun/dayjs

isSame does not work correctly with time zones

Open
#2,848 3 comments 0 reactions 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**
I passed the same dayjs object to both isSame parameters (with 'day' units) and got false.

**Expected behavior**
The same object should be the same day.

**Information**
- Day.js Version Whatever is running on the documentation site
- OS: latest Mac
- Browser Chrome 134
- Time zone: Central Daylight Time

Image

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.