Leap year error

Created on 3 May 2017, about 7 years ago
Updated 25 March 2023, over 1 year ago

I have had an issue on several things now with date not accounting for leap year.

Calendars have been off, age is incorrect etc.

Most recently I have used Views timeago selector and date of birth field. For every 4-7 years of age the age is off by 1 day cumulatively.
Example.
Age 5 is off by 1 day
Age 9 is off by 2 days
Age 13 is off by 3 days etc.

At first I thought it was Views but tracing it back, it looks like it is the DATE module. I am not a programmer, but it looks like it may be differences in date & dateTime or perhaps dateInterval. I would love to be able to fix it myself but I am afraid I would break more than I fix.

Does anyone have a solution for this issue?

TIA

🐛 Bug report
Status

Needs review

Version

2.0

Component

Date API

Created by

🇺🇸United States garymullins

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024