Skip to content

ToISOString breaking dates #6

@jjacobson

Description

@jjacobson

this.s.value[i] = moment(this.s.value[i], this.s.dateFormat).toISOString();

This line is causing me a headache. This converts the date to an ISO string ex. "2022-01-16T09:00:00.000Z"

The next time you make a request to the server it tries to create a moment date using that ISO string along with your custom formatter. This results in an invalid date because the custom format doesn't line up with that date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions