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 |
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? answered 11 Oct '11, 07:28 todork 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
|