Opened 2 years ago

Closed 2 years ago

Last modified 2 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


Hi there,

I have noticed the django development server time is different from the server time.

A) I executed:  runserver  --settings=mysettings

having as a result:

July 09, 2013 - 18:46:13
Django version 1.5, using settings mysettings'
Development server is running at
Quit the server with CONTROL-C.

B) then I executed:

sudo ntpdate

Having as a result

10 Jul 01:46:11 ntpdate[14890]: adjust time server 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 Changed 2 years 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 2 years ago by aaugustin

Actually, it happens regardless of the value of USE_TZ.

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