Skip to content

Commit 75b01c9

Browse files
toughengineerIniesta8
authored andcommitted
Replaced default spec with equivalent one, which is potentially more optimizable (fmtlib#2537)
1 parent 015fa96 commit 75b01c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/fmt/chrono.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,7 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
534534
return formatter<std::tm, Char>::format(time, ctx);
535535
}
536536

537-
static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-',
538-
'%', 'd', ' ', '%', 'H', ':',
539-
'%', 'M', ':', '%', 'S'};
537+
static constexpr Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
540538
};
541539

542540
template <typename Char, typename Duration>

0 commit comments

Comments
 (0)