Thanks How to solve the problem: Solution 1:įor pytz timezones, use their. I need to make start_date timezone aware ad well in tokyo.
ValueError: astimezone() cannot be applied to a naive datetime start_date = start_date.astimezone(local_tz) I need to find if this is true: print start_date>local_nowīut I get this error. Start_date = start_date.astimezone(local_tz) Start_date = datetime.strptime(start_date, '%Y-%m-%d') I have a date and I need to make it time zone aware. Question or problem about Python programming: