Skip to content

Commit

Permalink
Update changelog and bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
movermeyer authored and thomasst committed Feb 6, 2020
1 parent f21596e commit 42b7af3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

- [Unreleased](#unreleased)
- [2.x.x](#2xx)
- [Version 2.1.3](#version-213)
- [Version 2.1.2](#version-212)
- [Version 2.1.1](#version-211)
- [Version 2.1.0](#version-210)
Expand All @@ -23,6 +24,10 @@

# 2.x.x

## Version 2.1.3

* Fixed a problem where non-ASCII characters would give bad error messages (#84). Thanks @olliemath.

## Version 2.1.2

* Fixed a problem where `ciso8601.__version__` was not working (#80). Thanks @ianhoffman.
Expand Down Expand Up @@ -116,11 +121,11 @@ Now a timestamp will parse **if and only if** the timestamp is 100% conforming t
"2014-01-01T00:00:00-00:"

# Mix of no-separator and separator
"201401-02"
"201401-02"
"2014-0102"
"2014-01-02T00:0000"
"2014-01-02T00:0000"
"2014-01-02T0000:00"

"2014-01-02T01:23:45Zabcdefghij" # Trailing characters

"2014-01-1" # Single digit day
Expand All @@ -137,7 +142,7 @@ These should have been considered bugs in ciso8601 1.x.x, but it may be the case
It has been renamed to `parse_datetime_as_naive` for 2 reasons:

1. Developers were assuming that `parse_datetime_unaware` was the function to use for parsing naive timestamps, when really it is for parsing timestamps with time zone information as naive datetimes. `parse_datetime` handles parsing both timestamps with and without time zone information and should be used for all parsing, unless you actually need this use case. See additional description in [the README](https://github.com/closeio/ciso8601/tree/raise-valueerror-on-invalid-dates#ignoring-timezone-information-while-parsing) for a more detailed description of this use case.
2. Python [refers to datetimes without time zone information](https://docs.python.org/3/library/datetime.html) as `naive`, not `unaware`
2. Python [refers to datetimes without time zone information](https://docs.python.org/3/library/datetime.html) as `naive`, not `unaware`

Before switching all instances of `parse_datetime_unaware`, make sure to ask yourself whether you actually intended to use `parse_datetime_unaware`.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
os.environ['_CL_'] = ""
os.environ['_CL_'] += " /WX"

VERSION = "2.1.2"
VERSION = "2.1.3"

setup(
name="ciso8601",
Expand Down

0 comments on commit 42b7af3

Please sign in to comment.