Skip to content

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. #2834

Open
@xingyixiang

Description

@xingyixiang

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

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)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions