I have the below settings:
TIME_ZONE = UTC
USE_TZ = True
My server timezone is UTC+1 and the end user's timezone is UTC+2. Should I care about the server timezone or it is not related at all?
I have the below settings:
TIME_ZONE = UTC
USE_TZ = True
My server timezone is UTC+1 and the end user's timezone is UTC+2. Should I care about the server timezone or it is not related at all?
Copyright © 2021 Jogjafile Inc.
Server time zone isn't related in most cases. Your application will use UTC. The most common application in python uses
datetime.datetime.now(tzInfo=None)which will automatically passtzInfoas None when you calldatetime.datetime.now(). Unless you specify what timezonetzInfois, the datetime object will always return UTC.