mirror of
https://github.com/fmtlib/fmt.git
synced 2026-10-29 02:17:28 +08:00
The year_month_day formatter only filled in tm_year, tm_mon and tm_mday, so specifiers that depend on the weekday or the day of the year (%a, %A, %u, %w, %j, %U, %W, %V, %G, %g) were formatted from zero-initialized fields, e.g. every date was printed as a Sunday. Compute tm_wday and tm_yday from the date before passing it to the tm formatter. |
||
|---|---|---|
| .. | ||
| fmt | ||