Skip to content

Commit

Permalink
Version 1.19.1: minor adjustment to tc.utc()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogier Schouten committed Apr 9, 2015
1 parent 1c924db commit f0cd1b0
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 80 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ The version of the included IANA time zone database is 2015b.

## Changelog

### 1.19.1 (2015-04-09)
* Minor adjustment to tc.utc() so that tc.utc().identical(tc.zone("UTC")) === true (they had a different DST flag)

### 1.19.0 (2015-04-02)
* Made Period cloneable by adding a clone() method

Expand Down
5 changes: 4 additions & 1 deletion dist/timezonecomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,9 @@ var DateTime = (function () {
* @returns a DateTime
*/
DateTime.fromExcel = function (n, timeZone) {
assert(typeof n === "number", "fromExcel(): first parameter must be a number");
assert(!isNaN(n), "fromExcel(): first parameter must not be NaN");
assert(isFinite(n), "fromExcel(): first parameter must not be NaN");
var unixTimestamp = Math.round((n - 25569) * 24 * 60 * 60 * 1000);
return new DateTime(unixTimestamp, timeZone);
};
Expand Down Expand Up @@ -3740,7 +3743,7 @@ var TimeZone = (function () {
* The UTC time zone.
*/
TimeZone.utc = function () {
return TimeZone._findOrCreate("UTC", false);
return TimeZone._findOrCreate("UTC", true); // use 'true' for DST because we want it to display as "UTC", not "UTC without DST"
};
/**
* Zone implementations
Expand Down
7 changes: 7 additions & 0 deletions doc/assets/css/main.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit f0cd1b0

Please sign in to comment.