iamkun / iamkun/dayjs

Chrome v88 (88.0.4324.93) for Android does not recognize date

Open
#1,356 22 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
48.7k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

Device: Android phone (with Android v10)
Browser: Chrome v88 (88.0.4324.93).

dayJs('2021-01-26T00:00:00Z').tz(tz) returns "Invalid Date".
Started happening with Chrome upgrade v88.

dayJs(dateWithFormat).tz(tz) --> Works everywhere except Chrome88 on Android 10
dayJs.tz(dateWithFormat, tz) --> Works on Chrome 88 for Android 10.

Shouldn't these methods return the same values irrespective of the browser or the underlying OS?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two documented calls with dayJs('2021-01-26T00:00:00Z').tz(tz) and dayJs.tz(dateWithFormat, tz) in Chrome 88 on Android 10, then compare their parsing and timezone paths. Done means the browser-specific behavior is resolved or clearly documented, with regression coverage for the reported input if the project has an applicable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.