I am trying to convert a UTC date/time to 'Europe/London' timezone. I have tried using tz.localize using the date but I am told the datetime is not naive. If I try to remove the the timezone I still get the same error.
Fundamentally, I am trying to get this date: 04/05/2016 15:00 to become this date: 04/05/2016 14:00
My code is as follows where I am parsing through the date using iso8601.
date = 2016-05-04 15:00:00+00:00
fix_pars = iso8601.parse_date(str(date))
I have tried used pytz.localize but with no success as it doesn't like the fact my date already has a timezone set.
I find the documentation on this really confusing. All I want is the magic function that takes a date and converts based on a requested timezone. What function am I best to use?