From 55f60de223117080f236c1e98ceac2659f548a02 Mon Sep 17 00:00:00 2001 From: Joseph Snyder Date: Mon, 16 Feb 2026 08:58:26 -0500 Subject: [PATCH] Use seconds for TestStartTime entries Following the update to the Test entry for TestStartTime, do not use the createFromTimeStampMsUTC, but instead the function that creates it from seconds. See https://gitlab.kitware.com/cmake/cmake/-/merge_requests/11694#note_1773126 --- app/Http/Submission/Handlers/TestingHandler.php | 2 +- tests/Feature/Submission/Tests/TestXMLTest.php | 2 +- tests/Feature/Submission/Tests/data/with_starttesttime.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Submission/Handlers/TestingHandler.php b/app/Http/Submission/Handlers/TestingHandler.php index e6a048ac55..403326c7cb 100644 --- a/app/Http/Submission/Handlers/TestingHandler.php +++ b/app/Http/Submission/Handlers/TestingHandler.php @@ -287,7 +287,7 @@ public function text($parser, $data): void $this->TestCreator->testCommand .= $data; break; case 'STARTTESTTIME': - $this->TestCreator->testStartTime = Carbon::createFromTimestampMsUTC($data); + $this->TestCreator->testStartTime = Carbon::createFromTimestampUTC($data); break; } } elseif ($parent === 'NAMEDMEASUREMENT' && $element === 'VALUE') { diff --git a/tests/Feature/Submission/Tests/TestXMLTest.php b/tests/Feature/Submission/Tests/TestXMLTest.php index e4dc99a309..c637c18453 100644 --- a/tests/Feature/Submission/Tests/TestXMLTest.php +++ b/tests/Feature/Submission/Tests/TestXMLTest.php @@ -149,7 +149,7 @@ public function testStartTestTime(): void [ 'node' => [ 'name' => 'exec', - 'startTime' => '2026-02-13T18:03:54+00:00', + 'startTime' => '2026-02-16T13:56:30+00:00', ], ], ], diff --git a/tests/Feature/Submission/Tests/data/with_starttesttime.xml b/tests/Feature/Submission/Tests/data/with_starttesttime.xml index 51abc90175..bde8efa15f 100644 --- a/tests/Feature/Submission/Tests/data/with_starttesttime.xml +++ b/tests/Feature/Submission/Tests/data/with_starttesttime.xml @@ -14,7 +14,7 @@ . ./exec testExec - 1771005834991 + 1771250190.659912 0.00234227