I am exploring django with postgres. I have encountered a strange thing. TIMEZONE setting for my postgres connection(I am not talking about TIME_ZONE in settings.py) is surprisingly set to None. I have set timezone to 'Asia/Kolkata' and USE_TZ is also True. As per django docs, when USE_TZ is True, the connection timezone 'UTC' by default, while it'll be equal to the value of TIME_ZONE in settings.py, when USE_TZ is False. But, for me in both the cases, the value of connection.timezone is empty.
I have tried with sqlite3 backend, where I am getting expected results. I don't know, why I am not getting expected behaviour with postgres.
I am using django==1.10.5 and postgres is 9.5 on 64 bit machine. I am using following command to get connection's timezone.
from django.db import connection
print (connection.timezone)
Thanks in advance.