Does Django automatically detect the end user's timezone?

后端 未结 2 1584
一整个雨季
一整个雨季 2021-01-18 10:25

I am building an application in Django which allows the end-user to retrieve information which is sensitive to the time of day (12 am to 12 am) on a given day. I store this

2条回答
  •  臣服心动
    2021-01-18 10:45

    No. There are some packages where you can detect timezone based on IP address. You can look at https://github.com/adamcharnock/django-tz-detect

提交回复
热议问题