You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #52, %g and %G were implemented as aliases of %y and %Y. This leads to inconsistencies with formatting. For example, 21-Jan parsed with %g-%b is 2021-01-01. This same date formatted with %g-%b is 20-Jan because the ISO week year 2021 doesn’t start until 2021-01-04. Therefore it would be more appropriate for the parser to have returned 2021-01-04. But that requires some fancier parsing logic…
The text was updated successfully, but these errors were encountered:
mbostock
changed the title
ISO week year parsing (%g and %G) is not consistent with formatting.
ISO week year (%g and %G) parsing and formatting is inconsistent.
Feb 2, 2021
In #52, %g and %G were implemented as aliases of %y and %Y. This leads to inconsistencies with formatting. For example,
21-Jan
parsed with %g-%b is 2021-01-01. This same date formatted with%g-%b
is 20-Jan because the ISO week year 2021 doesn’t start until 2021-01-04. Therefore it would be more appropriate for the parser to have returned 2021-01-04. But that requires some fancier parsing logic…The text was updated successfully, but these errors were encountered: