[Answered ]-Django Correct Date / Time not PC date/time

1👍

datetime.today() takes its time information from the server your application is running on. If you currently run your application with python manage.py localhost:8000, the server is your local PC. In this scenario, you can tamper with the time setting of your PC and see different results.
But in production environment, your hosting server will provide the time information. Unless you have a security issue, no unauthorized user should be able to change that.

👤Tobias

Leave a comment