fix: msvc build failure

This commit is contained in:
Yat Ho 2024-04-18 16:11:03 +08:00 committed by Charles Kerr
parent 15015eb9c8
commit cc5eb6c410
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ auto constexpr bandwidth_priority_names = std::array<std::string_view, 4>{
template<size_t N>
std::string_view format_date(std::array<char, N>& buf, time_t now)
{
auto begin = std::begin(buf);
auto begin = std::data(buf);
auto end = fmt::format_to_n(begin, N, "{:%a %b %d %T %Y}", fmt::localtime(now)).out;
return { begin, static_cast<size_t>(end - begin) };
}