Skip to content

Commit

Permalink
Replaced default spec with equivalent one, which is potentially more …
Browse files Browse the repository at this point in the history
…optimizable (fmtlib#2537)
  • Loading branch information
toughengineer authored and Iniesta8 committed Oct 28, 2021
1 parent 015fa96 commit 75b01c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,7 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
return formatter<std::tm, Char>::format(time, ctx);
}

static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-',
'%', 'd', ' ', '%', 'H', ':',
'%', 'M', ':', '%', 'S'};
static constexpr Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
};

template <typename Char, typename Duration>
Expand Down

0 comments on commit 75b01c9

Please sign in to comment.