Formatting of system clocks ought to be to UTC, not to local time.

This improves standards conformance of fmt.
This commit is contained in:
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
2022-12-16 16:23:52 +00:00
committed by Victor Zverovich
parent b90895412f
commit 115001a3b1
3 changed files with 133 additions and 17 deletions

View File

@@ -309,7 +309,7 @@ TEST(chrono_test_wchar, time_point) {
for (const auto& spec : spec_list) {
auto t = std::chrono::system_clock::to_time_t(t1);
auto tm = *std::localtime(&t);
auto tm = *std::gmtime(&t);
auto sys_output = system_wcsftime(spec, &tm);