Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dayjs("2024-04-21T16:00:00Z").tz("Asia/Shanghai").format('YYYY.MM.DD') does not work on android wechat miniprogram (微信小程序) #2635

Open
TobinXu opened this issue Apr 22, 2024 · 1 comment

Comments

@TobinXu
Copy link

TobinXu commented Apr 22, 2024

Describe the bug

"dayjs": "^1.11.10"
when i use .tz("Asia/Shanghai") to format the date, i got a error answer '2024.04.22' on android phone but correct on ios phone, thats crazy!
maybe the dayjs ignore the date's timezone info,

Expected behavior

get the correct '2024.04.22'

Information

  • Day.js Version [v1.11.10]
  • OS: [android]
  • Time zone: [e.g. GMT+08:00 (Asia/Shanghai)]
@iamkun
Copy link
Owner

iamkun commented Apr 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants