https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120293
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|std::format("{}", |std::format("{}",
|std::chrono::sys_days()) |std::chrono::local_days())
|should not include |should not include
|time-of-day |time-of-day
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2025-05-15
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops, the bug is with local_days not sys_days. We get sys_days right. I've
fixed the summary but can't fix comment 0.
The full reproducer is:
#include <format>
#include <chrono>
#include <assert.h>
int main()
{
assert( std::format("{}", std::chrono::local_days()) == "1970-01-01" );
}