Skip to content
Discussion options

You must be logged in to vote

I had a closer look, and there is actually nothing to report upstream.
day.js, Luxon, Moment, date-fns, Temporal and JavaScript's own Date all accept a signed year only with exactly six digits, so +2026 and -2026 are rejected everywhere.

Quarto reads date with three libraries in turn (@std/datetime, moment-guess and day.js), then falls back to JavaScript's Date.
Some of what you saw comes from them: the six-digit rule, and the JavaScript engine dropping the sign of a date without a time.
The rest is on the Quarto side.
Quarto doesn't check the result or warn, so Invalid Date ends up in the page, in listings and in feeds, and -2026-11-20 or -0001-01-01 quietly shows as the wrong year.
I op…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@mcanouil
Comment options

@beedell-roke
Comment options

@mcanouil
Comment options

@mcanouil
Comment options

Answer selected by mcanouil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants