Skip to content

Commit 50ab886

Browse files
committed
Fix an issue with put_time expecting non adjusted tm struct.
1 parent df5b56b commit 50ab886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/logging/source/common/String.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ namespace string {
279279
std::string get_local_time_string(const int32_t unixtime, std::string_view format) {
280280
struct std::tm tminfo = {};
281281

282-
convert_to_local_tm_from_utc_time(unixtime, &tminfo);
282+
convert_to_local_tm_from_utc_time(unixtime, &tminfo, false);
283283

284284
std::ostringstream out;
285285
out << std::put_time(&tminfo, format.data());

0 commit comments

Comments
 (0)