In django settings.py I have TIME_ZONE = 'Asia/Tbilisi'
I have same timezone for postgres also
and separately, both works correctly.
Though, in Django, when I run raw queries like:
from django.db import connection
...
cursor = connection.cursor()
cursor.execute("select localtimestamp(0)")
res = cursor.fetchall()
This shows datetime with UTC time zone.
Probably this is caused by psycopg2
connection settings? because this:
print( connection.cursor().connection.get_parameter_status("TimeZone") )
shows: UTC
.
Question: How can I change this connection settings and SET needed timezone?