Skip to content

Commit 3d38fb7

Browse files
committed
Remove early initialization of tz_offset.
1 parent c3a6ece commit 3d38fb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tdutils/td/utils/port/Clocks.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ int Clocks::tz_offset() {
9292
}
9393

9494
namespace detail {
95-
int init_tz_offset_private = Clocks::tz_offset();
95+
// may cause static initialization order fiasco for some implementations of std::localtime
96+
// int init_tz_offset_private = Clocks::tz_offset();
9697
} // namespace detail
9798

9899
} // namespace td

0 commit comments

Comments
 (0)