iamkun / iamkun/dayjs

When the time zone of the Windows operating system is set to the America/Asuncion time zone, the time zone offset error is one hour.

Open
#2,834 8 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**
When the time zone of the Windows operating system is set to the America/Asuncion time zone, the time zone offset error is one hour.
Daylight Saving Time: UTC-3
Standard Time: UTC-4

Windows操作系统时区设置为(UTC-04:00) 亚松森 时区,时区偏移量误差1小时。
夏令时是:UTC-3
标准时间是:UTC-4

```javascript
it('test America/Asuncion', () => {
const testDate = dayjs.utc('2025-03-23T03:20:57.000+00:00').tz('America/Asuncion').format('YYYY-MM-DD HH:mm:ssZ')
expect(testDate).toBe('2025-03-22 23:20:57-04:00')
})
```
Result
2025-03-22 23:20:57-05:00

**Expected behavior**
2025-03-22 23:20:57-04:00

**Information**
- Day.js Version - 1.11.13
- windows 10
- Browser [chrome 132.0.6834.84]
- Time zone: [GMT-04:00 DST (America/Asuncion)]

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.