Skip to content

Commit 82f6f83

Browse files
committed
[#24281] Fixed 'timestamp_to_string_format' test
Signed-off-by: danipiza <dpizarrogallego@gmail.com>
1 parent 771b137 commit 82f6f83

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

cpp_utils/test/unittest/time/time_utils_test.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,7 @@ TEST(time_utils_test, timestamp_to_string_format)
377377
// time zone
378378
{
379379
// String for Time Zone is different in Windows or Linux
380-
#if _EPROSIMA_WINDOWS_PLATFORM
381-
std::string expected_str = "Coordinated Universal Time";
382-
#else
383-
std::string expected_str = "GMT";
384-
#endif // _EPROSIMA_WINDOWS_PLATFORM
380+
std::string expected_str = "UTC+00";
385381

386382
std::string date_str = timestamp_to_string(date, "%Z");
387383
ASSERT_EQ(date_str, expected_str);

0 commit comments

Comments
 (0)