Seemingly simple but I cannot get it to work. I have tried pytz.timezone('timezone').localize(dt.datetime().now()), dt.datetime.now().astimezone(pytz.timezone('timezone')) along with many other snippets, however they all create the a datetime object that is <my time>+/-timedifference.
How do I simply set the timezone of a datetime object to literally make it the timezone's time?
Edit:
Sorry for the confusion, the problem was to do with the time I was getting from my Postgres database. I thought the time was naive, however postgres was actually aware of the time and was returning it in UTC.