Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20726 closed Bug (worksforme)

Django development server time different from server time

Reported by: ncatdesigner@… 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

Change History (2)

comment:1 by Claude Paroz, 11 years ago

Resolution: worksforme
Status: newclosed

Yes, if your settings contain USE_TZ=True and a TIME_ZONE setting different from your current physical timezone, this may happen.

comment:2 by Aymeric Augustin, 11 years ago

Actually, it happens regardless of the value of USE_TZ.

Note: See TracTickets for help on using tickets.
Back to Top