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.
setup.py | |||
---|---|---|---|
Revision e0334d97e6d330b342b9912c5cccfada02c5952a | New Change | ||
54 lines | |||
def run_tests(*args):
|
|||
55 |
version=get_package_version(), |
55 |
version=get_package_version(), |
56 |
test_suite="dummy", |
56 |
test_suite="dummy", |
57 |
license="MIT", |
57 |
license="MIT", |
58 |
description="A collection of useful classes and functions for Django", |
58 |
description="A collection of useful classes and functions for Django", |
59 |
packages=find_packages(), |
59 |
packages=find_packages(), |
60 |
install_requires=['Django>=1.1.1', 'PIL'], |
60 |
install_requires=['Django>=1.1.1', |
61 |
'PIL', |
||
62 |
'pytz'
|
||
63 |
],
|
||
61 |
dependency_links = [ |
64 |
dependency_links = [ |
62 |
"http://downloads.reviewboard.org/mirror/", |
65 |
"http://downloads.reviewboard.org/mirror/", |
63 |
download_url, |
66 |
download_url, |
64 |
],
|
67 |
],
|
65 |
include_package_data=True, |
68 |
include_package_data=True, |
17 lines |
djblets/datagrid/grids.py |
---|
djblets/util/fields.py |
---|
djblets/util/forms.py |
---|
djblets/util/templatetags/djblets_utils.py |
---|