Skip to content

fix: return nil for non-positive epoch values in timestamp normalization #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

goratt12
Copy link

This fixes a bug where numeric or numeric-string timestamps with a value of 0 or less
would be incorrectly parsed as valid times. Now such values return nil instead.

Copy link

cla-checker-service bot commented Apr 22, 2025

💚 CLA has been signed

@mashhurs
Copy link

Thank you for contribution @goratt12! I think it is very valuable.
Can you please sign Contributor Agreement and add unit test cases.

@goratt12
Copy link
Author

Done :)
Added tests and refined the code.

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.

2 participants