Date.toLocaleString() using Hermes do not apply client timezone as they do in V8
- Dominant language
- JavaScript
- Stars
- 11.3k
- Forks
- 859
- Avg merge
- 1h 30m
- Merged PRs (30d)
- 3
Description
## Bug Description
.toLocaleString() using Hermes do not apply client timezone as they do in Chrome (V8). If a date is built using a UTC date string, this is the date and time that is presented to the user, not the date adjusted for the local timezone, as is the case with V8.
## Steps To Reproduce
In V8 the following code:
```
x = new Date("2021-11-16T00:00:00.000Z");
x.toString(); // 'Mon Nov 15 2021 16:00:00 GMT-0800 (Pacific Standard Time)'
x.toLocaleString("en-us"); // '11/15/2021, 4:00:00 PM'
```
In Hermes:
```
x = new Date("2021-11-16T00:00:00.000Z");
x.toString(); // "Mon Nov 15 2021 16:00:00 GMT-0800"
x.toLocaleString("en-us"); // Nov 16, 2021, 12:00:00 AM"
```
Contributor guide
Assessment
This issue has not been assessed yet.