Use new ISO format for compilation_time in API DeviceInfo

Change the API's DeviceInfo response to use the new ISO 8601 format
with timezone for compilation_time field by calling get_build_time_string()
instead of get_compilation_time_ref().

Update the placeholder build_info_data.h to match the new format.

Update integration test to expect the new format for compilation_time.
This commit is contained in:
David Woodhouse
2025-12-15 17:44:35 +00:00
parent 93bf1c8452
commit fd32139d89
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ async def test_build_info(
assert device_info.name == "build-info-test"
# Verify compilation_time from device_info is present and parseable
# The format is "Mon DD YYYY, HH:MM:SS" (e.g., "Dec 13 2024, 15:30:00")
# The format is ISO 8601 with timezone: "YYYY-MM-DD HH:MM:SS +ZZZZ"
compilation_time = device_info.compilation_time
assert compilation_time is not None