mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Formatting of system clocks ought to be to UTC, not to local time.
This improves standards conformance of fmt.
This commit is contained in:
committed by
Victor Zverovich
parent
b90895412f
commit
115001a3b1
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user