An open API service indexing awesome lists of open source software.

https://github.com/ntnyq/dayjs-alpha-test

https://github.com/iamkun/dayjs/issues/1879#issuecomment-1255798326
https://github.com/ntnyq/dayjs-alpha-test

Last synced: 2 months ago
JSON representation

https://github.com/iamkun/dayjs/issues/1879#issuecomment-1255798326

Awesome Lists containing this project

README

          

# dayjs-alpha-test

## Issue

Run `pnpm start`

```js
console.log(dayjs().format(`YYYY-MM-DD`)) // 2022-09-23
console.log(dayjs().subtract(1, 'day').format(`YYYY-MM-DD`)) // 2022-09-22
```

The outputs are as expected.

Run `pnpm test`

```js
console.log(dayjs().format(`YYYY-MM-DD`)) // 2022-09-23
console.log(dayjs().subtract(1, 'day').format(`YYYY-MM-DD`)) // 2022-09-23
```

Expression above got the same output which is weired.

Instead with `dayjs@1.x` it works as expected.