blob: e8b379c42c86cb934f60db1ea757a9e5048ab41f [file] [log] [blame]
Paul Ganssle418b8ae2016-11-06 20:54:45 -05001Version 2.6.0
2-------------
3- Added PEP-495-compatible methods to address ambiguous and imaginary dates in
4 time zones in a backwards-compatible way. Ambiguous dates and times can now
5 be safely represented by all dateutil time zones. Many thanks to Alexander
6 Belopolski (@abalkin) and Tim Peters @tim-one for their inputs on how to
7 address this. Original issues reported by Yupeng and @zed (lP: 1390262,
8 gh issues #57, #112, #249, #284, #286, prs #127, #225, #248, #264, #302).
9- Added new methods for working with ambiguous and imaginary dates to the tz
10 module. datetime_ambiguous() determines if a datetime is ambiguous for a given
11 zone and datetime_exists() determines if a datetime exists in a given zone.
12 This works for all fold-aware datetimes, not just those provided by dateutil.
13 (gh issue #253, gh pr #302)
14- Fixed an issue where dst() in Portugal in 1996 was returning the wrong value
15 in tz.tzfile objects. Reported by @abalkin (gh issue #128, pr #225)
16- Fixed an issue where zoneinfo.ZoneInfoFile errors were not being properly
17 deep-copied. (gh issue #226, pr #225)
18- Refactored tzwin and tzrange as a subclass of a common class, tzrangebase, as
19 there was substantial overlapping functionality. As part of this change,
20 tzrange and tzstr now expose a transitions() function, which returns the
21 DST on and off transitions for a given year. (gh issue #260, pr #302)
22- Deprecated zoneinfo.gettz() due to confusion with tz.gettz(), in favor of
23 get() method of zoneinfo.ZoneInfoFile objects. (gh issue #11, pr #310)
24- For non-character, non-stream arguments, parser.parse now raises TypeError
25 instead of AttributeError. (gh issues #171, #269, pr #247)
26- Fixed an issue where tzfile objects were not properly handling dst() and
27 tzname() when attached to datetime.time objects. Reported by @ovacephaloid.
28 (gh issue #292, pr #309)
29- /usr/share/lib/zoneinfo was added to TZPATHS for compatibility with Solaris
30 systems. Reported by @dhduvall (gh issue #276, pr #307)
31- tzoffset and tzrange objects now accept either a number of seconds or a
32 datetime.timedelta() object wherever previously only a number of seconds was
33 allowed. (gh pr #264, #277)
34- datetime.timedelta objects can now be added to relativedelta objects. Reported
35 and added by Alec Nikolas Reiter (@justanr) (gh issue #282, pr #283
36- Refactored relativedelta.weekday and rrule.weekday into a common base class
37 to reduce code duplication. (gh issue #140, pr #311)
38- An issue where the WKST parameter was improperly rendering in str(rrule) was
39 reported and fixed by Daniel LePage (@dplepage). (gh issue #262, pr #263)
40- A replace() method has been added to rrule objects by @jendas1, which creates
41 new rrule with modified attributes, analogous to datetime.replace (gh pr #167)
42- Made some significant performance improvements to rrule objects in Python 2.x
43 (gh pr #245)
44- All classes defining equality functions now return NotImplemented when
45 compared to unsupported classes, rather than raising TypeError, to allow other
46 classes to provide fallback support. (gh pr #236)
47- Several classes have been marked as explicitly unhashable to maintain
Jon Dufresne38232aa2017-04-16 22:03:43 -070048 identical behavior between Python 2 and 3. Submitted by Roy Williams
Paul Ganssle418b8ae2016-11-06 20:54:45 -050049 (@rowillia) (gh pr #296)
50- Trailing whitespace in easter.py has been removed. Submitted by @OmgImAlexis
51 (gh pr #299)
52- Windows-only batch files in build scripts had line endings switched to CRLF.
53 (gh pr #237)
54- @adamchainz updated the documentation links to reflect that the canonical
55 location for readthedocs links is now at .io, not .org. (gh pr #272)
56- Made some changes to the CI and codecov to test against newer versions of
57 Python and pypy, and to adjust the code coverage requirements. For the moment,
58 full pypy3 compatibility is not supported until a new release is available,
59 due to upstream bugs in the old version affecting PEP-495 support.
60 (gh prs #265, #266, #304, #308)
61- The full PGP signing key fingerprint was added to the README.md in favor of
62 the previously used long-id. Reported by @valholl (gh issue #287, pr #304)
63- Updated zoneinfo to 2016i. (gh issue #298, gh pr #306)
64
65
Paul Ganssleda1435e2016-04-20 21:07:52 -040066Version 2.5.3
67-------------
68- Updated zoneinfo to 2016d
69- Fixed parser bug where unambiguous datetimes fail to parse when dayfirst is
70 set to true. (gh issue #233, pr #234)
71- Bug in zoneinfo file on platforms such as Google App Engine which do not
72 do not allow importing of subprocess.check_call was reported and fixed by
73 @savraj (gh issue #239, gh pr #240)
74- Fixed incorrect version in documentation (gh issue #235, pr #243)
75
Paul Gansslec778dd12016-03-27 11:47:46 -040076Version 2.5.2
77-------------
78- Updated zoneinfo to 2016c
79- Fixed parser bug where yearfirst and dayfirst parameters were not being
80 respected when no separator was present. (gh issue #81 and #217, pr #229)
81
Paul Ganssle66f29ba2016-03-17 12:49:09 -040082Version 2.5.1
83-------------
84- Updated zoneinfo to 2016b
85- Changed MANIFEST.in to explicitly include test suite in source distributions,
86 with help from @koobs (gh issue #193, pr #194, #201, #221)
87- Explicitly set all line-endings to LF, except for the NEWS file, on a
88 per-repository basis (gh pr #218)
89- Fixed an issue with improper caching behavior in rruleset objects (gh issue
90 #104, pr #207)
91- Changed to an explicit error when rrulestr strings contain a missing BYDAY
92 (gh issue #162, pr #211)
93- tzfile now correctly handles files containing leapcnt (although the leapcnt
94 information is not actually used). Contributed by @hjoukl (gh issue #146, pr
95 #147)
96- Fixed recursive import issue with tz module (gh pr #204)
97- Added compatibility between tzwin objects and datetime.time objects (gh issue
98 #216, gh pr #219)
99- Refactored monolithic test suite by module (gh issue #61, pr #200 and #206)
100- Improved test coverage in the relativedelta module (gh pr #215)
101- Adjusted documentation to reflect possibly counter-intuitive properties of
102 RFC-5545-compliant rrules, and other documentation improvements in the rrule
103 module (gh issue #105, gh issue #149 - pointer to the solution by @phep,
104 pr #213).
105
106
Zbigniew Jędrzejewski-Szmek8ef32342016-02-28 20:05:09 -0500107Version 2.5.0
108-------------
109- Updated zoneinfo to 2016a
110- zoneinfo_metadata file version increased to 2.0 - the updated updatezinfo.py
111 script will work with older zoneinfo_metadata.json files, but new metadata
112 files will not work with older updatezinfo.py versions. Additionally, we have
113 started hosting our own mirror of the Olson databases on a github pages
114 site (https://dateutil.github.io/tzdata/) (gh pr #183)
115- dateutil zoneinfo tarballs now contain the full zoneinfo_metadata file used
116 to generate them. (gh issue #27, gh pr #85)
117- relativedelta can now be safely subclassed without derived objects reverting
118 to base relativedelta objects as a result of arithmetic operations.
119 (lp:1010199, gh issue #44, pr #49)
120- relativedelta 'weeks' parameter can now be set and retrieved as a property of
121 relativedelta instances. (lp: 727525, gh issue #45, pr #49)
122- relativedelta now explicitly supports fractional relative weeks, days, hours,
123 minutes and seconds. Fractional values in absolute parameters (year, day, etc)
124 are now deprecated. (gh issue #40, pr #190)
125- relativedelta objects previously did not use microseconds to determine of two
126 relativedelta objects were equal. This oversight has been corrected.
127 Contributed by @elprans (gh pr #113)
128- rrule now has an xafter() method for retrieving multiple recurrences after a
129 specified date. (gh pr #38)
130- str(rrule) now returns an RFC2445-compliant rrule string, contributed by
131 @schinckel and @armicron (lp:1406305, gh issue #47, prs #50, #62 and #160)
132- rrule performance under certain conditions has been significantly improved
133 thanks to a patch contributed by @dekoza, based on an article by Brian Beck
134 (@exogen) (gh pr #136)
135- The use of both the 'until' and 'count' parameters is now deprecated as
136 inconsistent with RFC2445 (gh pr #62, #185)
137- Parsing an empty string will now raise a ValueError, rather than returning the
138 datetime passed to the 'default' parameter. (gh issue #78, pr #187)
139- tzwinlocal objects now have a meaningful repr() and str() implementation
140 (gh issue #148, prs #184 and #186)
141- Added equality logic for tzwin and tzwinlocal objects. (gh issue #151,
142 pr #180, #184)
143- Added some flexibility in subclassing timelex, and switched the default
144 behavior over to using string methods rather than comparing against a fixed
145 list. (gh pr #122, #139)
146- An issue causing tzstr() to crash on Python 2.x was fixed. (lp: 1331576,
147 gh issue #51, pr #55)
148- An issue with string encoding causing exceptions under certain circumstances
149 when tzname() is called was fixed. (gh issue #60, #74, pr #75)
150- Parser issue where calling parse() on dates with no day specified when the
151 day of the month in the default datetime (which is "today" if unspecified) is
152 greater than the number of days in the parsed month was fixed (this issue
153 tended to crop up between the 29th and 31st of the month, for obvious reasons)
154 (canonical gh issue #25, pr #30, #191)
155- Fixed parser issue causing fuzzy_with_tokens to raise an unexpected exception
156 in certain circumstances. Contributed by @MichaelAquilina (gh pr #91)
157- Fixed parser issue where years > 100 AD were incorrectly parsed. Contributed
158 by @Bachmann1234 (gh pr #130)
159- Fixed parser issue where commas were not a valid separator between seconds
160 and microseconds, preventing parsing of ISO 8601 dates. Contributed by
161 @ryanss (gh issue #28, pr #106)
162- Fixed issue with tzwin encoding in locales with non-Latin alphabets
163 (gh issue #92, pr #98)
164- Fixed an issue where tzwin was not being properly imported on Windows.
165 Contributed by @labrys. (gh pr #134)
166- Fixed a problem causing issues importing zoneinfo in certain circumstances.
167 Issue and solution contributed by @alexxv (gh issue #97, pr #99)
168- Fixed an issue where dateutil timezones were not compatible with basic time
169 objects. One of many, many timezone related issues contributed and tested by
170 @labrys. (gh issue #132, pr #181)
171- Fixed issue where tzwinlocal had an invalid utcoffset. (gh issue #135,
172 pr #141, #142)
173- Fixed issue with tzwin and tzwinlocal where DST transitions were incorrectly
174 parsed from the registry. (gh issue #143, pr #178)
175- updatezinfo.py no longer suppresses certain OSErrors. Contributed by @bjamesv
176 (gh pr #164)
177- An issue that arose when timezone locale changes during runtime has been
178 fixed by @carlosxl and @mjschultz (gh issue #100, prs #107, #109)
179- Python 3.5 was added to the supported platforms in the metadata (@tacaswell
180 gh pr #159) and the test suites (@moreati gh pr #117).
181- An issue with tox failing without unittest2 installed in Python 2.6 was fixed
182 by @moreati (gh pr #115)
183- Several deprecated functions were replaced in the tests by @moreati
184 (gh pr #116)
185- Improved the logic in Travis and Appveyor to alleviate issues where builds
186 were failing due to connection issues when downloading the IANA timezone
187 files. In addition to adding our own mirror for the files (gh pr #183), the
188 download is now retried a number of times (with a delay) (gh pr #177)
189- Many failing doctests were fixed by @moreati. (gh pr #120)
190- Many fixes to the documentation (gh pr #103, gh pr #87 from @radarhere,
191 gh pr #154 from @gpoesia, gh pr #156 from @awsum, gh pr #168 from @ja8zyjits)
192- Added a code coverage tool to the CI to help improve the library. (gh pr #182)
193- We now have a mailing list - dateutil@python.org, graciously hosted by
194 Python.org.
195
196
197Version 2.4.2
198-------------
199- Updated zoneinfo to 2015b.
200- Fixed issue with parsing of tzstr on Python 2.7.x; tzstr will now be decoded
201 if not a unicode type. gh #51 (lp:1331576), gh pr #55.
202- Fix a parser issue where AM and PM tokens were showing up in fuzzy date
203 stamps, triggering inappropriate errors. gh #56 (lp: 1428895), gh pr #63.
204- Missing function "setcachesize" removed from zoneinfo __all__ list by @ryanss,
205 fixing an issue with wildcard imports of dateutil.zoneinfo. (gh pr #66).
206- (PyPi only) Fix an issue with source distributions not including the test
207 suite.
208
209
210Version 2.4.1
211-------------
212
213- Added explicit check for valid hours if AM/PM is specified in parser.
214 (gh pr #22, issue #21)
215- Fix bug in rrule introduced in 2.4.0 where byweekday parameter was not
216 handled properly. (gh pr #35, issue #34)
217- Fix error where parser allowed some invalid dates, overwriting existing hours
218 with the last 2-digit number in the string. (gh pr #32, issue #31)
219- Fix and add test for Python 2.x compatibility with boolean checking of
220 relativedelta objects. Implemented by @nimasmi (gh pr #43) and Cédric Krier
221 (lp: 1035038)
222- Replaced parse() calls with explicit datetime objects in unit tests unrelated
223 to parser. (gh pr #36)
224- Changed private _byxxx from sets to sorted tuples and fixed one currently
225 unreachable bug in _construct_byset. (gh pr #54)
226- Additional documentation for parser (gh pr #29, #33, #41) and rrule.
227- Formatting fixes to documentation of rrule and README.rst.
228- Updated zoneinfo to 2015a.
229
230Version 2.4.0
231-------------
232
233- Fix an issue with relativedelta and freezegun (lp:1374022)
234- Fix tzinfo in windows for timezones without dst (lp:1010050, gh #2)
235- Ignore missing timezones in windows like in POSIX
236- Fix minimal version requirement for six (gh #6)
237- Many rrule changes and fixes by @pganssle (gh pull requests #13 #14 #17),
238 including defusing some infinite loops (gh #4)
239
240Version 2.3
241-----------
242
243- Cleanup directory structure, moved test.py to dateutil/tests/test.py
244
245- Changed many aspects of dealing with the zone info file. Instead of a cache,
246 all the zones are loaded to memory, but symbolic links are loaded only once,
247 so not much memory is used.
248
249- The package is now zip-safe, and universal-wheelable, thanks to changes in
250 the handling of the zoneinfo file.
251
252- Fixed tzwin silently not imported on windows python2
253
254- New maintainer, together with new hosting: GitHub, Travis, Read-The-Docs
255
256Version 2.2
257-----------
258
259- Updated zoneinfo to 2013h
260
261- fuzzy_with_tokens parse addon from Christopher Corley
262
263- Bug with LANG=C fixed by Mike Gilbert
264
265Version 2.1
266-----------
267
268- New maintainer
269
270- Dateutil now works on Python 2.6, 2.7 and 3.2 from same codebase (with six)
271
272- #704047: Ismael Carnales' patch for a new time format
273
274- Small bug fixes, thanks for reporters!
275
276
277Version 2.0
278-----------
279
280- Ported to Python 3, by Brian Jones. If you need dateutil for Python 2.X,
281 please continue using the 1.X series.
282
283- There's no such thing as a "PSF License". This source code is now
284 made available under the Simplified BSD license. See LICENSE for
285 details.
286
287Version 1.5
288-----------
289
290- As reported by Mathieu Bridon, rrules were matching the bysecond rules
291 incorrectly against byminute in some circumstances when the SECONDLY
292 frequency was in use, due to a copy & paste bug. The problem has been
293 unittested and corrected.
294
295- Adam Ryan reported a problem in the relativedelta implementation which
296 affected the yearday parameter in the month of January specifically.
297 This has been unittested and fixed.
298
299- Updated timezone information.
300
301
302Version 1.4.1
303-------------
304
305- Updated timezone information.
306
307
308Version 1.4
309-----------
310
311- Fixed another parser precision problem on conversion of decimal seconds
312 to microseconds, as reported by Erik Brown. Now these issues are gone
313 for real since it's not using floating point arithmetic anymore.
314
315- Fixed case where tzrange.utcoffset and tzrange.dst() might fail due
316 to a date being used where a datetime was expected (reported and fixed
317 by Lennart Regebro).
318
319- Prevent tzstr from introducing daylight timings in strings that didn't
320 specify them (reported by Lennart Regebro).
321
322- Calls like gettz("GMT+3") and gettz("UTC-2") will now return the
323 expected values, instead of the TZ variable behavior.
324
325- Fixed DST signal handling in zoneinfo files. Reported by
326 Nicholas F. Fabry and John-Mark Gurney.
327
328
329Version 1.3
330-----------
331
332- Fixed precision problem on conversion of decimal seconds to
333 microseconds, as reported by Skip Montanaro.
334
335- Fixed bug in constructor of parser, and converted parser classes to
336 new-style classes. Original report and patch by Michael Elsdörfer.
337
338- Initialize tzid and comps in tz.py, to prevent the code from ever
339 raising a NameError (even with broken files). Johan Dahlin suggested
340 the fix after a pyflakes run.
341
342- Version is now published in dateutil.__version__, as requested
343 by Darren Dale.
344
345- All code is compatible with new-style division.
346
347
348Version 1.2
349-----------
350
351- Now tzfile will round timezones to full-minutes if necessary,
352 since Python's datetime doesn't support sub-minute offsets.
353 Thanks to Ilpo Nyyssönen for reporting the issue.
354
355- Removed bare string exceptions, as reported and fixed by
356 Wilfredo Sánchez Vega.
357
358- Fix bug in leap count parsing (reported and fixed by Eugene Oden).
359
360
361Version 1.1
362-----------
363
364- Fixed rrule byyearday handling. Abramo Bagnara pointed out that
365 RFC2445 allows negative numbers.
366
367- Fixed --prefix handling in setup.py (by Sidnei da Silva).
368
369- Now tz.gettz() returns a tzlocal instance when not given any
370 arguments and no other timezone information is found.
371
372- Updating timezone information to version 2005q.
373
374
375Version 1.0
376-----------
377
378- Fixed parsing of XXhXXm formatted time after day/month/year
379 has been parsed.
380
381- Added patch by Jeffrey Harris optimizing rrule.__contains__.
382
383
384Version 0.9
385-----------
386
387- Fixed pickling of timezone types, as reported by
388 Andreas Köhler.
389
390- Implemented internal timezone information with binary
391 timezone files [1]. datautil.tz.gettz() function will now
392 try to use the system timezone files, and fallback to
393 the internal versions. It's also possible to ask for
394 the internal versions directly by using
395 dateutil.zoneinfo.gettz().
396
397- New tzwin timezone type, allowing access to Windows
398 internal timezones (contributed by Jeffrey Harris).
399
400- Fixed parsing of unicode date strings.
401
402- Accept parserinfo instances as the parser constructor
403 parameter, besides parserinfo (sub)classes.
404
405- Changed weekday to spell the not-set n value as None
406 instead of 0.
407
408- Fixed other reported bugs.
409
410[1] http://www.twinsun.com/tz/tz-link.htm
411
412
413Version 0.5
414-----------
415
416- Removed FREQ_ prefix from rrule frequency constants
417 WARNING: this breaks compatibility with previous versions.
418
419- Fixed rrule.between() for cases where "after" is achieved
420 before even starting, as reported by Andreas Köhler.
421
422- Fixed two digit zero-year parsing (such as 31-Dec-00), as
423 reported by Jim Abramson, and included test case for this.
424
425- Sort exdate and rdate before iterating over them, so that
426 it's not necessary to sort them before adding to the rruleset,
427 as reported by Nicholas Piper.