Skip to content

Commit

Permalink
v5.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogier Schouten committed Jan 2, 2017
1 parent 8896b8c commit fae2179
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ var africaDoualaDate = amsterdamDate.toZone("Africa/Douala");
var error = naiveDate.toZone("Europe/Amsterdam"); // ERROR! THROWS

// Other way around is ok
var ok = amsterdamDate.toZone(null); // returns naive date
var ok = amsterdamDate.toZone(undefined); // returns naive date

// In-place time zone conversion
var d = new tc.DateTime("2014-01-01T13:59:59.000 Europe/Amsterdam");
Expand Down Expand Up @@ -460,8 +460,8 @@ tc.DateTime.exists(2015, 3, 29, 3, 0, 0, 0, TimeZone.zone("Europe/Amsterdam"));

// Pre-1970 dates: you can allow or disallow them with the last boolean parameter
// as the IANA time zone database is not reliable prior to 1970
tc.DateTime.exists(1969, 12, 31, 23, 59, 59, 999, null, false); // false
tc.DateTime.exists(1969, 12, 31, 23, 59, 59, 999, null, true); // true
tc.DateTime.exists(1969, 12, 31, 23, 59, 59, 999, undefined, false); // false
tc.DateTime.exists(1969, 12, 31, 23, 59, 59, 999, undefined, true); // true
tc.DateTime.exists(1969, 12, 31, 23, 59, 59, 999, TimeZone.zone("Europe/Amsterdam"), false); // false
tc.DateTime.exists(1969, 12, 31, 23, 59, 59, 999, TimeZone.zone("Europe/Amsterdam"), true); // true

Expand Down
5 changes: 5 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

# Changelog

## 5.4.2 (2017-01-02)

* Upgrade TypeScript to 2.1.4 and enable strict null checks and other compile-time checks
* DateTime.zone() now returns undefined rather than null for an unaware date

## 5.4.1 (2016-11-14)

* Bugfix in Duration#equalsExact(): identical durations of 1 day would not be seen as equal
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "timezonecomplete",
"version": "5.4.1",
"version": "5.4.2",
"description": "DateTime, TimeZone, Duration and Period library aimed at providing a consistent and complete date-time interface, away from the original JavaScript Date class.",
"keywords": [
"Date",
Expand Down

0 comments on commit fae2179

Please sign in to comment.