Skip to content
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

feature: Update addYears function to make it timezone agnostic conversion #3783

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

Conversation

AllanKM
Copy link

@AllanKM AllanKM commented Apr 25, 2024

Adjust the function AddYears to be timezone Agnostic. addYears gives different results depending on system timezone

Resolves:
#3783

Copy link
Member

@kossnocorp kossnocorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thank you for the PR.

But before moving on, can you please expand on what it does? The PR links to itself, and while I can guess, I would rather see a clear explanation of the problem.

Even if it's a breaking change, there must be a solid reason to update existing tests. Furthermore, I would ask you not to use UTC in the tests because it prevents the timezone tests from catching bugs. They should pass regardless of the timezone, and if they don't, I would like to know why so I can advise you on how to approach it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triaging
Development

Successfully merging this pull request may close these issues.

None yet

2 participants