China time: 2023-05-27 00:00:00+08:06 -> this should be 2023-05-27 00:00:00+08:00
UTC time: 2023-05-26 15:54:00+00:00 -> and this should be 2023-05-26 16:00:00+00:00
Expected behavior
China time: 2023-05-27 00:00:00+08:00
UTC time: 2023-05-26 16:00:00+00:00
Environment
No any special setup, just install pyhton and install need packages
Workarounds
Priority
That will be error for all datetime calculation for China Time zone!
Please delete it, I made mistake!
Description
The pytz.timezone('Asia/Shanghai') is not correct with a bug!
How to Reproduce
You will find the bug If you run this code! The pytz.timezone('Asia/Shanghai') should be +8:00 in time zone, but it return +8:06!
Output Given
China time: 2023-05-27 00:00:00+08:06 -> this should be 2023-05-27 00:00:00+08:00 UTC time: 2023-05-26 15:54:00+00:00 -> and this should be 2023-05-26 16:00:00+00:00
Expected behavior
China time: 2023-05-27 00:00:00+08:00 UTC time: 2023-05-26 16:00:00+00:00
Environment
No any special setup, just install pyhton and install need packages
Workarounds
Priority
That will be error for all datetime calculation for China Time zone!
Additional Context