@@ -225,7 +225,7 @@ public function testDeserialize(): void
225225 * even though the cXML definition defines the timestamp value to be in ISO-8601 format there are some providers that
226226 * also uses the milliseconds value (i.e. JAGGAER).
227227 */
228- public function testDeserializeWithMilliseconds (): void
228+ public function testDeserializeWithMillisecondsAndTimezone (): void
229229 {
230230 $ xmlIn =
231231 '<?xml version="1.0" encoding="UTF-8"?>
@@ -239,7 +239,6 @@ public function testDeserializeWithMilliseconds(): void
239239 $ cXml = $ serializer ->deserialize ($ xmlIn );
240240
241241 $ actual = $ serializer ->serialize ($ cXml );
242-
243242 $ xmlOut =
244243 '<?xml version="1.0" encoding="UTF-8"?>
245244 <cXML timestamp="2022-06-07T10:09:56+00:00" payloadID="x.y.z">
@@ -250,6 +249,22 @@ public function testDeserializeWithMilliseconds(): void
250249 $ this ->assertXmlStringEqualsXmlString ($ xmlOut , $ actual );
251250 }
252251
252+ public function testDeserializeWithMillisecondsNoTimezone (): void
253+ {
254+ $ xmlIn =
255+ '<?xml version="1.0" encoding="UTF-8"?>
256+ <cXML timestamp="2022-06-07T10:09:56.728" payloadID="x.y.z">
257+ <Response>
258+ <Status code="200" text="OK">Ping Response CXml</Status>
259+ </Response>
260+ </cXML> ' ;
261+
262+ $ serializer = Serializer::create ();
263+ $ cXml = $ serializer ->deserialize ($ xmlIn );
264+
265+ $ this ->assertSame ('2022-06-07T10:09:56+00:00 ' , $ cXml ->getTimestamp ()->format ('c ' ));
266+ }
267+
253268 public function testDeserializeWithDateTimeForDate (): void
254269 {
255270 $ xmlIn =
0 commit comments