diff options
| author | levlam <levlam@telegram.org> | 2026-04-09 16:08:04 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-04-09 16:08:04 +0300 |
| commit | 3d38fb7aa99c8bf783a62a864da8cddd62777e8e (patch) | |
| tree | fe5c00725c8090fe44ca27571ceb5389da13b189 | |
| parent | c3a6ecea6312a6940fcf6890ed046841932d3f4f (diff) | |
Remove early initialization of tz_offset.
| -rw-r--r-- | tdutils/td/utils/port/Clocks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tdutils/td/utils/port/Clocks.cpp b/tdutils/td/utils/port/Clocks.cpp index c1e5b7389..775ec5f89 100644 --- a/tdutils/td/utils/port/Clocks.cpp +++ b/tdutils/td/utils/port/Clocks.cpp @@ -92,7 +92,8 @@ int Clocks::tz_offset() { } namespace detail { -int init_tz_offset_private = Clocks::tz_offset(); +// may cause static initialization order fiasco for some implementations of std::localtime +// int init_tz_offset_private = Clocks::tz_offset(); } // namespace detail } // namespace td |
