Code

Opened 12 months ago

Closed 12 months ago

Last modified 12 months 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

Attachments (0)

Change History (2)

comment:1 Changed 12 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

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

comment:2 Changed 12 months ago by aaugustin

Actually, it happens regardless of the value of USE_TZ.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.