So the title is quite self explanatory: I was trying to datetime.strptime(news.date, '%a, %d %b %Y %H:%M %Z')
and it didn't work out for Tue, 19 Nov 2019 09:00 EST
but got a ValueError
. I tried to use datetime.strptime(news.date[:-4], '%a, %d %b %Y %H:%M')
and it all works just fine. How do I fix this timezone issue?
Update: the timezone will be used later, so I do need to process it as well