Skip to content

dayjs.tz instances produce inconsistent results with repeated calls #2992

@Sankeerthana1204

Description

@Sankeerthana1204

When calling dayjs.tz(...) multiple times on the same date, the timezone may shift unexpectedly.

const dt = dayjs('2020-08-08T00:00:00.000Z');
console.log(dt.tz('America/Chicago').tz('America/Chicago').format());

Expected:
Same date/time

Actual:
Date shifts back repeatedly

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