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
{{ message }}
Repository navigation
[Feature Request]: Improve month calculations in relative time formatting #24060
The relativeformat util treats every month as 4 weeks. That can make relative dates drift from calendar months. #24059 fixes the case where 364 days was reported as 13 months, but the calculation is still based on 28 day blocks.
Use a month calculation that better reflects calendar time instead of dividing weeks by 4. An average month length or calendar aware calculation could work. Whichever approach is chosen, the expected behavior around month ends and leap years should be clear.
Examples
The current calculation treats 28 days as 1 month and 336 days as 12 months. Calendar months vary from 28 to 31 days, so those results may not match what users expect.
Design impact
No
Documentation impact
The website documentation (carbondesignsystem.com)
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.
If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.
Activity
carbon-automation commentedon Nov 15, 2026
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.
If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.