Skip to content

Z character not escaped when put in square brackets #12

@d4sh

Description

@d4sh

Let say I have some date in a variable called dateObject (1 July 2019 05:00:00 UTC), then doing:

formatToTimeZone(dateObject, 'DDHHmm[Z] MMM YYYY', { timeZone: 'UTC' })

should give:

010500Z Jul 2019

but instead gives:

010500+00:00 Jul 2019

I thought doing [Z] escapes the Z like the M in [GMT]????

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