-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
datetime().astimezone() is broken #4982
Comments
both RustPython/vm/src/stdlib/time.rs Lines 318 to 328 in 59df92d
reference, Python docs on these: https://docs.python.org/3/library/time.html#time.struct_time Might be easy to add them. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that RustPython supports datetime().astimezone() while the implementation of this function is broken and attribute 'tm_gmtoff' is missing. See the following example.
Example.py
Output on RustPython:
Behavior on CPython: works normally
Environment:
RustPython: v0.2.0 (https://github.com/RustPython/RustPython#59df92d7)
CPython: 3.9.0
Ubuntu 18.04
The text was updated successfully, but these errors were encountered: