0

I am running the following

>>> datetime.datetime.strptime("Jan 1 2017", "%b %d %Y").replace(tzinfo=timezone("US/Central")).strftime("%Y-%m-%dT%H:%M:%S%z")
'2017-01-01T00:00:00-0551'

I would expect this to be at an offset of -0600, but it seems to be off by 9 minutes. Why is this timezone wrong and how do I get it to correct?

steventnorris
  • 5,656
  • 23
  • 93
  • 174

0 Answers0