#20726 closed Bug (worksforme)
Django development server time different from server time
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.5 |
Severity: | Normal | Keywords: | time |
Cc: | ncatdesigner@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi there,
I have noticed the django development server time is different from the server time.
A) I executed:
manage.py runserver 10.211.55.27:9000 --settings=mysettings
having as a result:
July 09, 2013 - 18:46:13 Django version 1.5, using settings mysettings' Development server is running at http://10.211.55.27:9000/ Quit the server with CONTROL-C.
B) then I executed:
sudo ntpdate ntp.ubuntu.com
Having as a result
10 Jul 01:46:11 ntpdate[14890]: adjust time server 91.189.94.4 offset -0.001371 sec
and I repeated the A command with the same result
How can I fix this? am I doing something wrong?
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Note:
See TracTickets
for help on using tickets.
Yes, if your settings contain
USE_TZ=True
and aTIME_ZONE
setting different from your current physical timezone, this may happen.