Skip to content

Commit 57a2fe1

Browse files
committed
feat universal: fix GCC 11 build of timestamp test
commit_hash:0651d8711dc4d3d3bd19a2122cd73ed471e8d728
1 parent 23aa46e commit 57a2fe1

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

universal/src/logging/timestamp_test.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ TEST(Timestamp, GMTimeString) {
1515
}
1616

1717
TEST(Timestamp, LocalTimeString) {
18-
std::tm local_time{
19-
.tm_sec = 56,
20-
.tm_min = 34,
21-
.tm_hour = 12,
22-
.tm_mday = 2,
23-
.tm_mon = 0,
24-
.tm_year = 120,
25-
.tm_isdst = -1,
26-
};
18+
std::tm local_time{};
19+
local_time.tm_sec = 56;
20+
local_time.tm_min = 34;
21+
local_time.tm_hour = 12;
22+
local_time.tm_mday = 2;
23+
local_time.tm_mon = 0;
24+
local_time.tm_year = 120;
25+
local_time.tm_isdst = -1;
2726

2827
const auto time = std::chrono::system_clock::from_time_t(std::mktime(&local_time));
2928
EXPECT_EQ(logging::GetCurrentLocalTimeString(time).ToStringView(), "2020-01-02T12:34:56");

0 commit comments

Comments
 (0)