From 5c35bd2148805b78231b3c5fea2ff2381977044a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 28 May 2021 08:37:35 -0600 Subject: [PATCH] fix typo, clarify comment --- README.md | 4 ++-- xtz.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ba519fc..77433db 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ TZ.toUTCISOString("2021-11-07 03:15:59.000", "America/New_York"); ```js var tzDate = TZ.toUTC("2021-11-07 03:15:59.000", "America/New_York"); // { -// year: 2021, month: 11, day: 7, +// year: 2021, month: 10, day: 7, // hour: 3, minute: 15, second: 59, millisecond: 0, // offset: -300, timeZoneName: "Eastern Standard Time" // } @@ -40,7 +40,7 @@ TZ.toTimeZoneISOString("2021-03-14T07:15:59.000Z", "America/New_York"); ```js var utcDate = TZ.toTimeZone("2021-03-14T07:15:59.000Z", "America/New_York"); // { -// year: 2021, month: 3, day: 14, +// year: 2021, month: 2, day: 14, // hour: 3, minute: 15, second: 59, millisecond: 0, // offset: -240, timeZoneName: "Eastern Daylight Time" // } diff --git a/xtz.js b/xtz.js index 57d9743..23356af 100644 --- a/xtz.js +++ b/xtz.js @@ -49,7 +49,7 @@ var XTZ; default: val = parseInt(val, 10); } - // whole.month = 0; + // ex: whole.month = 0; whole[part.type] = val; });