Answer the question
In order to leave comments, you need to log in
Any alternatives to django-timezones?
I found a module for working with dates tied to time zones.
The author thought it out well (in terms of functionality, it suits me), but it seems that he never used it in practice. Because it is full of bugs, including no mysql support, and it alone is capable of generating hundreds of queries per page.
There are, of course, different forks , but none of them essentially corrects the situation.
So the question is, is there another common way to work with dates tied to time zones for Django?
Answer the question
In order to leave comments, you need to log in
I use django-timezones like this:
class City(models.Model):
name = models.CharField(u'City', max_length=30)
timezone = TimeZoneField(u'timezone')
def now(self):
return datetime.now(self.timezone).replace(tzinfo=None)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question