WebFaction
Community site: login faq

The problem I am facing is that my apache access logs shows time in GMT + 0200 timezone whereas i have explicitly set timezone to Asia/Kolkotta in my django settings file. I also tried doing os.envrion['TZ'] = "Asia/Kolkotta", but still apache log timezone is GMT + 0200. However my local logs created within Django app have the correct timezone.

asked 11 Oct '11, 06:50

krg85
111
accept rate: 0%


Hi,

I just tested this, and the timezone in the logs is changed when I change the TIME_ZONE variable in settings.py. Is this what you changed?

permanent link

answered 11 Oct '11, 07:28

todork
1.2k4
accept rate: 34%

yes thats what i changed. This indeed changes the timezone for my app log but there is no change on the apache time log.

(11 Oct '11, 08:35) krg85

I tested this on a new Django installation - the logs under ~/logs/user/access_<appname>.log were showing the correct time zone set under "TIME_ZONE".

Please check if you have the TIME_ZONE setting twice in settings.py. If this is not it, please open a support ticket so we can look at this. Thanks!

(11 Oct '11, 08:43) todork
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×225
×8

question asked: 11 Oct '11, 06:50

question was seen: 3,722 times

last updated: 11 Oct '11, 08:43

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM