iamkun / iamkun/dayjs

isDayjs() & moment

Open
#1,496 0 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

Source Code: https://codesandbox.io/s/zen-brook-4b1rg?file=/src/index.js

```js
import dayjs2 from 'dayjs';
import moment from 'moment';

// include with script tag
const dayjs = window.dayjs;

// issue 1
// expect true
// log false
console.log(dayjs2.isDayjs(dayjs()));

// issue 2
// expect 2021-05-21 11:22:33
// log 2021-05-21 00:00:00
console.log(moment(dayjs('2021-05-21 11:22:33')).format('YYYY-MM-DD HH:mm:ss'));

```

Contributor guide

Open the contributing guide

Research direction

Start with the CodeSandbox reproduction and its src/index.js entry point. Check both reported cases: isDayjs() with the script-tag global and Moment formatting of a Day.js value. Done means the two logged results match the stated expectations and the behavior is covered by repository tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.