Skip to content

format doesn't support new in option in v4 #3886

@Ky6uk

Description

@Ky6uk

I'm not sure if it is intentional or missed. I've tried migrating from date-fns-tz's formatInTimeZone, but discovered that format doesn't support timezone like other functions.

I can assume it should be done a kind of this way const tzDate = new TZDate(dateObject, timeZone) and pass tzDate instead of dateObject to the format function, but I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions