UTC appears broken in Angular
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Using dayjs.utc('datestring') doesn't give me the date string as UTC
**Expected behavior**
Should get date in string as UTC
**Information**
- Day.js Version 1.10.4
- OS: Windows 10 & Linux
- Browser: edge 90.0.818.46 and firefox 88.0
- Time zone: +9:30
Demo:
https://stackblitz.com/edit/angular-ivy-ba14dv?file=src/app/hello.component.ts
Contributor guide
Research direction
Open the linked StackBlitz and inspect src/app/hello.component.ts, then reproduce dayjs.utc('datestring') in the reported browsers and time zone. Compare the displayed result with the expected UTC string and establish the precise failing behavior; done means the reproduction produces the intended UTC date string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100