summaryrefslogtreecommitdiff
path: root/django/utils/tzinfo.py
AgeCommit message (Collapse)Author
2015-01-17Removed django.utils.tzinfo per deprecation timeline; refs #17262.Tim Graham
2014-03-27Add a useful stacklevel to some RemovedInDjango19WarningsChris Beaven
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-09-09Fixed #17262 -- Refactored tzinfo implementations.Aymeric Augustin
This commit deprecates django.utils.tzinfo in favor of the more recent django.utils.timezone which was introduced when Django gained support for time zones.
2013-02-11Accepted None in tzname().Aymeric Augustin
This is required by the tzinfo API, see Python's docs. Also made _get_timezone_name deterministic.
2012-08-30Replaced some smart_xxx by force_xxx equivalentClaude Paroz
smart_str/smart_text should only be used when a potential lazy string should be preserved in the result of the function call.
2012-08-07[py3] Ported django.utils.tzinfo.Aymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Fixed #16899 -- Backported the fix for http://bugs.python.org/issue9063 and ↵Aymeric Augustin
added a test. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-25Fixed #16924 -- Corrected `date` template filter handling of negative (West ↵Ramiro Morales
of UTC) timezone offsets. The 'O' format specifier output was incorrect. Thanks mrgriscom and Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Fixed #10979 -- Fixed misleading FixedOffset.__repr__(). Thanks, gsongAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-08Fixed #10335: handle system locals unknown to Python in timezone name ↵Jacob Kaplan-Moss
handling. Thanks, mitsuhiko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8142 -- Removed an unnecessary parameter in a superclass init call.Malcolm Tredinnick
Patch from Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Fixed #7016: use correct time zones for Atom feeds. Thanks, Chris Cahoon.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-18Improved LocalTimezone._isdst() to handle dates before approximately ↵Adrian Holovaty
1901-12-01 (the specific cutoff date is platform-specific). Refs #1443 git-svn-id: http://code.djangoproject.com/svn/django/trunk@7945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-29Fixed #5846 -- Bullet-proofed the default timezone encoding test.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-29Fixed #6023 -- Fixed daylight savings determination for years beyond 2038 onMalcolm Tredinnick
32-bit systems (modulo the fact that the system timezone libraries might not be accurate that far out; at least we don't crash now). Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22Fixed #479 -- Implemented time-zone formats in dateformat. Thanks, SuneAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@992 bcc190cf-cafb-0310-a4f2-bffc1f526a37