The application I am working on has as target users USA. And (as you may know) in USA there's more than one time zone. So I have some doubts:
- so how could I get the current time in server side based on the current user?
- And how could I store
DateTime
data to show the correct time for every user? - How can I compare times (example:
user.event.created > datetime.now()
)? What timezone will.now()
use? - What TIME_ZONE should I set in
settings.py
file.
This is for an API, to grab user's timezone via JS is not an option. I get the current user via TokenAuthentication.