Skip to content

Fix age_in_years leap year birthday edge case#20

Merged
chetmancini merged 1 commit intomasterfrom
chetmancini/helsinki-v1
Jan 25, 2026
Merged

Fix age_in_years leap year birthday edge case#20
chetmancini merged 1 commit intomasterfrom
chetmancini/helsinki-v1

Conversation

@chetmancini
Copy link
Copy Markdown
Owner

Handle Feb 29 birthdays correctly by treating them as Feb 28 in non-leap years, fixing an edge case where the birthday comparison would incorrectly subtract a year. Also refactored epoch_s to use datetime.timestamp() instead of the deprecated utctimetuple() method.

All tests pass and linting checks are clean.

Handle Feb 29 birthdays correctly by treating them as Feb 28 in non-leap years.
Refactor epoch_s to use datetime.timestamp() instead of deprecated utctimetuple().

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@chetmancini chetmancini merged commit 73b13cd into master Jan 25, 2026
6 checks passed
@chetmancini chetmancini deleted the chetmancini/helsinki-v1 branch January 25, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant