iamkun / iamkun/dayjs

dayjs().tz('America/New_York').valueOf(), it return local timezone timestamp

Open
#2,295 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

**Describe the bug**
```
dayjs().tz('America/New_York').valueOf() // retrun local timezone timestamp
```

**Expected behavior**
retrun America/New_York timezone timestamp

**Information**
- Day.js Version [v1.11.5]
- OS: [macOS]
- Browser [chrome 104]
- Time zone: [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.