Closed ChrisSeakane closed 1 year ago
dayOfYear doesn't work if I want to set to 31st December in a leap year.
let s = spacetime() s = s.year(2020) s = s.dayOfYear(366); console.log(s.json())
I get 30th December (date = 30, month = 11)
Maybe I'm stupid/misunderstanding something 🤷
Oof! This does look like a bug. Am offline for the weekend, let me take a look then. Thanks for the heads up
Of course, no rush. Enjoy the Easter weekend!
fixed in 7.4.3 cheers
dayOfYear doesn't work if I want to set to 31st December in a leap year.
I get 30th December (date = 30, month = 11)
Maybe I'm stupid/misunderstanding something 🤷