Re: datetime 8 hours off
Hi, > The only safe way to run multiple Django instances with different > timezone settings is to run them in separate processes using mod_wsgi > daemon mode or fastcgi type solutions. We are using runfcgi with protocol=ajp, with proxy_ajp on the Apache side. Works great here. Sander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
Andrew Durdin wrote: > On Apr 4, 1:16�pm, Simon Oberhammer <[EMAIL PROTECTED]> > wrote: > > Magus on IRC told me that multiple django projects with different > > timezones serverd by apache / mod_python could be a problem - ie one > > changing TZ in a thread that also servers the other project. > > > > So I set timezone-setting to Vienna/Europe for all of them and have > > not seen then datetime-problem since 24hours. I think that was it. > > We were encountering the same problem, as one django project was still > set to 'America/Chicago' instead of 'Europe/London' which is where we > are. This appears to be a bug in the Django mod_python handler, so I > have added a ticket for it: http://code.djangoproject.com/ticket/7062 Except that setting TZ on every request doesn't solve the problem and may just make it worse for multithread Apache MPM modules such as used on Windows, or worker MPM on UNIX. The only safe way to run multiple Django instances with different timezone settings is to run them in separate processes using mod_wsgi daemon mode or fastcgi type solutions. Graham --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
On Apr 4, 1:16 pm, Simon Oberhammer <[EMAIL PROTECTED]> wrote: > Magus on IRC told me that multiple django projects with different > timezones serverd by apache / mod_python could be a problem - ie one > changing TZ in a thread that also servers the other project. > > So I set timezone-setting to Vienna/Europe for all of them and have > not seen then datetime-problem since 24hours. I think that was it. We were encountering the same problem, as one django project was still set to 'America/Chicago' instead of 'Europe/London' which is where we are. This appears to be a bug in the Django mod_python handler, so I have added a ticket for it: http://code.djangoproject.com/ticket/7062 Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
Magus on IRC told me that multiple django projects with different timezones serverd by apache / mod_python could be a problem - ie one changing TZ in a thread that also servers the other project. So I set timezone-setting to Vienna/Europe for all of them and have not seen then datetime-problem since 24hours. I think that was it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
On 3 Apr 2008, at 1:58 am, Simon Oberhammer wrote: > > thanks, i will try fastcgi tomorrow and report back. > >> Is the time constantly 8 hours behind or does that vary e.g. does the >> offset get larger over time? > > it's always 8 hours behind, but not reproducable. though it happens > everyday. > > there are php sites running on the server.. well let's see if fastcgi > helps. Could this perhaps be that you are assigning datetime.now() (or equivalent) to a variable and then trying to use this? Which means that the value of that varible will be the date/time when apache is started/restarted (which could be at the same time everyday). Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
thanks, i will try fastcgi tomorrow and report back. > Is the time constantly 8 hours behind or does that vary e.g. does the > offset get larger over time? it's always 8 hours behind, but not reproducable. though it happens everyday. there are php sites running on the server.. well let's see if fastcgi helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
Simon Oberhammer napisał(a): > anybody? after restartign apache everything is fine again.. i have to > do this once or twice a day. > > On Apr 1, 9:15 pm, Simon Oberhammer <[EMAIL PROTECTED]> > wrote: >>> What version of Django are you using?, what deployment method >>> are you using? (mod_python, fast cgi, mod_wscgi). >> i'm using mod_python and am running the current svn django. I've found >> an open timezone bug, but don't think its related >> >> http://code.djangoproject.com/changeset/7184 We had another problems with mod_python around year ago and we switched to FastCGI. While not perfect, it does not give us any oddities like race conditions coming from single-VM process (these times, mod_wsgi was still maturing). May I suggest dropping mod_python and give mod_wsgi a try? -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (Tim Peters) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
anybody? after restartign apache everything is fine again.. i have to do this once or twice a day. On Apr 1, 9:15 pm, Simon Oberhammer <[EMAIL PROTECTED]> wrote: > > What version of Django are you using?, what deployment method > > are you using? (mod_python, fast cgi, mod_wscgi). > > i'm using mod_python and am running the current svn django. I've found > an open timezone bug, but don't think its related > > http://code.djangoproject.com/changeset/7184 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
> What version of Django are you using?, what deployment method > are you using? (mod_python, fast cgi, mod_wscgi). i'm using mod_python and am running the current svn django. I've found an open timezone bug, but don't think its related http://code.djangoproject.com/changeset/7184 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: datetime 8 hours off
On Tue, Apr 1, 2008 at 5:46 AM, Simon Oberhammer <[EMAIL PROTECTED]> wrote: > > hey group, > I have an inconsistant time problem, which goes away when I restart > apache, but then creeps up again after some time. When writing > comments in my custom app the time is 8hours behind (i'm CEST) *for > some users*. When I login with others, its okay. > > in settings.py I have > TIME_ZONE = 'Europe/Vienna' > > [EMAIL PROTECTED]:~/pm3$ date > Tue Apr 1 10:44:32 CEST 2008 > > any ideas what I should look for? This is annyoing.. it forces my to > apache2ctl restart quite often :-) > What version of Django are you using?, what deployment method are you using? (mod_python, fast cgi, mod_wscgi). -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
datetime 8 hours off
hey group, I have an inconsistant time problem, which goes away when I restart apache, but then creeps up again after some time. When writing comments in my custom app the time is 8hours behind (i'm CEST) *for some users*. When I login with others, its okay. in settings.py I have TIME_ZONE = 'Europe/Vienna' [EMAIL PROTECTED]:~/pm3$ date Tue Apr 1 10:44:32 CEST 2008 any ideas what I should look for? This is annyoing.. it forces my to apache2ctl restart quite often :-) greetings simono --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---