Message330892
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | nixphix |
|---|---|
| Recipients | Delgan, nixphix |
| Date | 2018-12-02.17:23:30 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1543771411.08.0.788709270274.issue35364@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
It's a side effect of a date arithmetic operation performed while setting timezone. while passing tz info to datetime invokes tz.fromutc() -> https://github.com/python/cpython/blob/3df85404d4bf420db3362eeae1345f2cad948a71/Lib/datetime.py#L1593 followed by a datetime arithmetic here -> https://github.com/python/cpython/blob/3df85404d4bf420db3362eeae1345f2cad948a71/Lib/datetime.py#L2188 which eventually leads to building a new datetime object here -> https://github.com/python/cpython/blob/3df85404d4bf420db3362eeae1345f2cad948a71/Lib/datetime.py#L1997-L2000 I'm not sure if its an expected behaviour |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-12-02 17:23:31 | nixphix | set | recipients: + nixphix, Delgan |
| 2018-12-02 17:23:31 | nixphix | set | messageid: <1543771411.08.0.788709270274.issue35364@psf.upfronthosting.co.za> |
| 2018-12-02 17:23:31 | nixphix | link | issue35364 messages |
| 2018-12-02 17:23:30 | nixphix | create | |