pytz and Etc/GMT-5

后端 未结 2 1670
忘了有多久
忘了有多久 2020-12-11 03:52

I\'m having trouble understanding the conversion between the \"Etc/GMT-5\" timezone and UTC in pytz.

>>> dt = datetime(2009, 9, 9, 10, 0) # Septembe         


        
2条回答
  •  轮回少年
    2020-12-11 04:19

    This bug report explains this behavior. Apparently they know that it is all inverted, but that's because anything else would break compatibility.

提交回复
热议问题