django-timezones
django-timezones copied to clipboard
A Django reusable app to deal with timezone localization for users.
Somewhat of a silly issue, but you're missing a LICENSE file, which makes it a little more difficult to use this in a production environment.
Add scope to keep proper dt_field_name through iterations. It took me about a day to figure out why our 2 different fields in out db share same value
I think I filed this before, but it may have got lost when github totally reworked their pull request subsystem. Anyway, it looks to me like the issue is still...
A fix to remove timezone information from dates before inserting in the DB. Some DBs do not support timezones on dates (notably, MySQL). We therefore have to remove the timezone...
Just making note of this deprecation warning under Django 1.3 python2.7/site-packages/timezones/fields.py:55: DeprecationWarning: A Field class whose get_db_prep_save method hasn't been updated to take a `connection` argument. class LocalizedDateTimeField(models.DateTimeField):
I've written a bunch of template tags which convert UTC datetimes and timestamps to a local timezone. For example: ``` Last modified: {% localdt item.modified_utc %} ({% localtimesince time.modified_utc %})...
I've sent in a pull request.
turn this: {{ match.start|localtime:request.user.account_set.all.0.timezone|date:"n/d/y"}} into this: {{ match.start|localtime:request|date:"n/d/y"}} In addition, pull the timezone out of session if it is there than hitting the database every single usage of the template...