gregor icon indicating copy to clipboard operation
gregor copied to clipboard

Date formatting prints incorrect year in French locale

Open matteodelabre opened this issue 1 year ago • 7 comments

It looks like ~t produces incorrect years for some dates when the current locale is fr.

> (current-locale "")
> (~t (date 2023 05 31) "YYYY")
"2023"
> (current-locale "fr")
> (~t (date 2023 05 31) "YYYY")
"2024"

From what I can tell, this happens for May 29th, 30th and 31st of this year. It also happens for the years 2016, 2017, 2021, 2022, and 2023, but works properly in 2015, 2018, 2019, 2020, and 2024.

  • Racket v8.9
  • gregor 2d20192e8

matteodelabre avatar Jun 14 '23 18:06 matteodelabre