Skip to content

Wrong time zone offset in 'Asia/Tokyo' when using 'timezone' plugin #986

Closed
@makitow

Description

@makitow

Describe the bug
Wrong time zone offset in 'Asia/Tokyo' when using 'timezone' plugin

Expected behavior

dayjs.extend(utc);
dayjs.extend(timezone);

console.log(dayjs().tz('Asia/Tokyo').format('Z'));
// => +08:59.995649999999955

Information

  • Day.js Version 1.8.32
  • OS: mac
  • Browser Google Chrome 84
  • Time zone: GMT+09:00 JST

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions