Skip to content

Commit

Permalink
Fix the extremely slow formatting on Windows
Browse files Browse the repository at this point in the history
The local time zone querying is glacially slow
  • Loading branch information
netheril96 committed Mar 13, 2024
1 parent 5e8dc8d commit fc487bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/fuse_tracer_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace
{
auto time = absl::TimeFromTimespec(
{value.value->tv_sec, static_cast<long>(value.value->tv_nsec)});
absl::Format(&sink, "%v", time);
absl::Format(&sink, "%s", absl::FormatTime(absl::RFC3339_full, time, absl::UTCTimeZone()));
}
template <typename Sink>
void AbslStringify(Sink& sink, Wrapped<const char*> value)
Expand Down

0 comments on commit fc487bf

Please sign in to comment.