We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/sdispater/pendulum/blob/f1df7dc3f838bd4ab1075ba25c8b6ce5d8141995/pendulum/datetime.py#L656
The pull request #482 breaks the following:
>>> dt = pendulum.DateTime(2022, 6, 8, 13, 21, 12, 239829, tzinfo=pendulum._Timezone('America/New_York')) >>> dt._add_timedelta(datetime.timedelta(seconds=3600)) DateTime(2022, 6, 8, 14, 21, 12, 239829, tzinfo=Timezone('America/New_York'))
The _add_timedelta call is a no-op.
The text was updated successfully, but these errors were encountered:
@sdispater
Sorry, something went wrong.
The problem is it's calling pendulum.Date.add_timedelta instead of pendulum.DateTime.add_timedelta, even though it's a DateTime object.
Oh just realized, the methods were renamed. See here: https://github.com/sdispater/pendulum/blob/7e3880abbc51387f75644754f6f437dc515ed7e3/pendulum/datetime.py#L636-L639
No branches or pull requests
https://github.com/sdispater/pendulum/blob/f1df7dc3f838bd4ab1075ba25c8b6ce5d8141995/pendulum/datetime.py#L656
The pull request #482 breaks the following:
The _add_timedelta call is a no-op.
The text was updated successfully, but these errors were encountered: