Skip to content

Commit e223a63

Browse files
committed
Fix some syntax errors.
1 parent 0d62cce commit e223a63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/logging/source/common/String.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <cstring>
1515
#include <iostream>
1616
#include <time.h>
17+
#include <atomic>
18+
#include <time.h>
1719

1820
namespace {
1921
constexpr size_t buffer_size = 1024;
@@ -51,7 +53,7 @@ namespace string {
5153
auto res = _get_timezone(&time);
5254
ASSERT(res == 0);
5355
#else
54-
auto time = *_timezone();
56+
auto time = timezone;
5557
#endif
5658
return static_cast<int32_t>(- time); // negate since timezone is how to get utc time from local time (local time - utc time)
5759
}
@@ -63,7 +65,7 @@ namespace string {
6365
auto res = _get_daylight(&time);
6466
ASSERT(res == 0);
6567
#else
66-
auto time = *_daylight();
68+
auto time = daylight;
6769
#endif
6870
return static_cast<int32_t>(inHours ? time : time * 3600);
6971
}

0 commit comments

Comments
 (0)