Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
  • Loading branch information
phprus committed Feb 6, 2025
1 parent eae8f33 commit c96a846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ auto to_time_t(sys_time<Duration> time_point) -> std::time_t {
// providing current_zone(): https://github.com/fmtlib/fmt/issues/4160.
template <typename T> FMT_CONSTEXPR auto has_current_zone() -> bool {
using namespace std::chrono;
using namespace fmt::fmt_detail;
return !std::is_same<decltype(current_zone()), fmt::fmt_detail::time_zone*>::value;
using namespace fmt::v11::fmt_detail;
return !std::is_same<decltype(current_zone()), fmt::v11::fmt_detail::time_zone*>::value;
}
} // namespace detail

Expand Down Expand Up @@ -576,7 +576,7 @@ template <typename Duration,
FMT_ENABLE_IF(detail::has_current_zone<Duration>())>
inline auto localtime(std::chrono::local_time<Duration> time) -> std::tm {
using namespace std::chrono;
using namespace fmt::fmt_detail;
using namespace fmt::v11::fmt_detail;
return localtime(detail::to_time_t(current_zone()->to_sys<Duration>(time)));
}
#endif
Expand Down Expand Up @@ -993,7 +993,7 @@ struct has_member_data_tm_zone<T, void_t<decltype(T::tm_zone)>>

inline void tzset_once() {
static bool init = []() {
using namespace fmt::fmt_detail;
using namespace fmt::v11::fmt_detail;
_tzset();
return false;
}();
Expand Down

0 comments on commit c96a846

Please sign in to comment.