Skip to content

Dates are being appended a .000Z #1430

@jmechevarria

Description

@jmechevarria

We use this library where I work, to create a SOAP client and make requests to an API, and we receive an XML which is parsed into JSON using this library.

After updating from 0.45 to the latest version, we noticed a problem with the dates when compared as they are in the original XML, and in the resulting JSON.

Example: 2026-06-06T12:00:00 is turned into 2026-06-06T12:00:00.000Z.

We infer the library (or one of its dependencies) assumes the date to be UTC, and appends the .000Z, which completely breaks our logic since the date is actually local time in the context of our business.

We did some trial and error and identified the issue happening since version 1.1.1

Before we embark in our own post-processing solution to identify all affected fields and strip them of the .000Z. Is this expected behavior/by design? Arbitrarily appending a UTC offset to a date that has no offset info looks like a bug.

Thanks for looking into this.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions