-
Notifications
You must be signed in to change notification settings - Fork 6k
Localize datetimes to defaults timezone #3632
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
Localize datetimes to defaults timezone #3632
Conversation
|
I think I've finished - I cannot find any more test to do. |
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! The changes look good so far. We'll need a few newunit tests though :)
- tests for
extract_tzinfo_from_defaultsintest_datetime.py, where you pass atg.Bot, atg.ext.ExtBotwithout defaults and atg.ext.ExtBotwith defaults to ensure that everything works as expected - For all the changed classes we need ensure that the datetime objects are localized as expected in the three cases described above. For that, please add a
test_de_json_localization(or sim) after the respectivede_jsontests. The test fixtures linked in #3595 should be used for that.
Please do reach out if you need help with the unit tests - I know that those are not always simple :)
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates - LGTM! What a nice PR :) If we get another approval (maybe lemontree or pool), we can merge
Poolitzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed a few changestrings.
Btw, is the docstring important for the args documentation? It only applies to the attributes of the classes, no...
|
@Poolitzer do you have any comments left? @Trifase I guess there is notheng to be added from your side? |
I think I fullfilled everything that was requested and everything else that was missing! |
Poolitzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thank you very much for this nice contribution @Trifase ! I hope that you also had some fun with the PR :) |
When done, will close #3595
Checklist for PRs
.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)AUTHORS.rst(optional)