Django

Code

Ticket #1119 (closed: duplicate)

Opened 3 years ago

Last modified 2 years ago

Time zone configuration does not work properly

Reported by: Marek Kubica Assigned to: jacob
Milestone: Component: Generic views
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

I'm developing my Django programs under Windows, which is set to local time, the time zone being Europe/Berlin. When I set TIME_ZONE in my settings.py to 'Europe/Berlin' Django sets the offset to GMT to zero (determined by item.date|date:"d.m.Y H:i O" in a template) and the time returned by datetime.now() is one hour earlier then it is on my computer (the time shown in the log, e.g. [26/Dec/2005 ...] is also one hour too early). The only way of correcting it, seems to set TIME_ZONE to 'GMT-1', which is not true for Germany (and does not respect daylight saving).

Attachments

Change History

05/01/06 19:07:38 changed by adrian

  • status changed from new to closed.
  • resolution set to duplicate.

Duplicate of other time-zone related tickets.


Add/Change #1119 (Time zone configuration does not work properly)




Change Properties
Action