mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-12 22:13:23 +00:00
b6aa2b61c6
Backport #38398 by @SudhanshuMatrix The contribution calendar manually constructed localized date strings instead of using the browser's locale-aware date formatting. Replace this with `toLocaleDateString()` to correctly format dates for all locales and calendar systems, including non-Gregorian calendars. Fixes https://github.com/go-gitea/gitea/issues/38375 --- ### Before and After Comparison (Persian `fa-IR`) Before (Buggy) <img width="1246" height="651" alt="image" src="https://github.com/user-attachments/assets/670698e6-dd4a-4c7e-b7fb-23849090d1b9" /> After (Fixed) <img width="1246" height="651" alt="image" src="https://github.com/user-attachments/assets/9b65c647-876e-475b-98d1-614ef316fd6f" /> Co-authored-by: Shudhanshu Singh <sudhanshuwriterblc@gmail.com>