iamkun / iamkun/dayjs

isSameOrAfter get unexpected result

Open
#2,331 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

https://day.js.org/docs/en/query/is-same-or-after#docsNav
https://jsfiddle.net/ineedhelp/3xancjyd/3/

```js
console.log(dayjs('2023-06-11T23:40:00.000Z').isSameOrAfter('2023-06-12T13:40:00.000Z', 'day'))
```
it returns true but it should return false

Day.js Version v1.11.7
OS: Windows 11
Time zone: GMT+03:00

Contributor guide

Open the contributing guide

Research direction

Start with the isSameOrAfter documentation and run the linked JSFiddle or the provided Day.js snippet using v1.11.7. Check how the day unit compares these UTC timestamps in the reported GMT+03:00 environment. Done means the example's result matches the documented day-level comparison and a regression case covers it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.