Localized timezone support (Djblets)
Review Request #2721 — Created Dec. 1, 2011 and submitted — Latest diff uploaded
Supports the USE_TZ feature in Django dev by creating UTC, timezone aware datetime objects. DateTimeColumn and DateTimeSinceColumn are updated to accept a new parameter "timezone", which converts the datetime object into that timezone. A TimeZoneField form field is created to make implementing a timezone ChoiceField simple. Lastly, timezones are created as UTC and are checked to be aware/naive for backwards compatibility.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 6. See what's changed.
orig
1
2
3
4
5
6
djblets/datagrid/grids.py |
---|
djblets/log/__init__.py |
---|
djblets/util/fields.py |
---|
djblets/util/forms.py |
---|
djblets/util/tests.py |
---|
djblets/util/templatetags/djblets_utils.py |
---|