The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Age Calculator Integration Error: Unexpected Leap Year Behavior
oleyreyy0832
post Aug 1 2024, 09:05 AM
Post #1





Group: Members
Posts: 2
Joined: 31-July 24
Member No.: 29,214



I'm facing an issue with an age calculator I'm trying to integrate into my website. The calculator seems to be miscalculating ages for leap years. For example, someone born on February 29th, 1992, is showing an incorrect age.

I've tried adjusting the leap year logic in the code, but it's still not working as expected. Any ideas on what might be causing this or how to troubleshoot it?

This post has been edited by oleyreyy0832: Aug 1 2024, 09:33 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Aug 2 2024, 03:31 AM
Post #2


Jocular coder
********

Group: Members
Posts: 2,480
Joined: 31-August 06
Member No.: 43



QUOTE(oleyreyy0832 @ Aug 1 2024, 11:05 PM) *

I'm facing an issue with an age calculator I'm trying to integrate into my website. The calculator seems to be miscalculating ages for leap years. For example, someone born on February 29th, 1992, is showing an incorrect age.

I've tried adjusting the leap year logic in the code, but it's still not working as expected. Any ideas on what might be causing this or how to troubleshoot it?


For most of us, probably, reading Turkish is very difficult, so please extract the code for the calculation and show it here. I guess it is javascript? Note that date calculation code is notoriously difficult to get right, so probably 98+% of standard libraries etc will have errors.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
6 User(s) are reading this topic (6 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 4th December 2024 - 12:21 AM