File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/logging/source/common Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
#include < cstring>
15
15
#include < iostream>
16
16
#include < time.h>
17
+ #include < atomic>
18
+ #include < time.h>
17
19
18
20
namespace {
19
21
constexpr size_t buffer_size = 1024 ;
@@ -51,7 +53,7 @@ namespace string {
51
53
auto res = _get_timezone (&time);
52
54
ASSERT (res == 0 );
53
55
#else
54
- auto time = * _timezone () ;
56
+ auto time = timezone ;
55
57
#endif
56
58
return static_cast <int32_t >(- time); // negate since timezone is how to get utc time from local time (local time - utc time)
57
59
}
@@ -63,7 +65,7 @@ namespace string {
63
65
auto res = _get_daylight (&time);
64
66
ASSERT (res == 0 );
65
67
#else
66
- auto time = * _daylight () ;
68
+ auto time = daylight ;
67
69
#endif
68
70
return static_cast <int32_t >(inHours ? time : time * 3600 );
69
71
}
You can’t perform that action at this time.
0 commit comments